aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2013-12-02 11:26:52 +0100
committerMiquel Sabaté <mikisabate@gmail.com>2013-12-02 11:26:52 +0100
commitc558ab1d4a0122d7967847a216059dd2d1a8b8ba (patch)
tree56b1274632bb09c755314c200d33254d6599c51f
parentbb2fe99cad6fe5fa968014f44da964ba1c0859fe (diff)
downloaddotfiles-c558ab1d4a0122d7967847a216059dd2d1a8b8ba.tar.gz
dotfiles-c558ab1d4a0122d7967847a216059dd2d1a8b8ba.zip
vim: Added the Ctrl+S shortcut.
-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>