aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index c6ce0f7..e27f7db 100644
--- a/vimrc
+++ b/vimrc
@@ -34,5 +34,11 @@ autocmd FileType c set shiftwidth=4 tabstop=4
autocmd FileType yacc set shiftwidth=4 tabstop=4
autocmd FileType go set shiftwidth=4 tabstop=4
+"
" Re-mappings
+"
+
let mapleader = ","
+
+" Control + S in insert mode: switch to normal mode and write to disk.
+inoremap <C-S> <ESC>:w<CR>