]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Map jj to exit insert mode.
authorSimon Ruderich <simon@ruderich.org>
Tue, 30 Mar 2010 23:29:15 +0000 (01:29 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 30 Mar 2010 23:29:15 +0000 (01:29 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 9fcf7454fe5c672fa6b1ae79e3e37e38cb21f07b..72236770c3337f4a312acf5707ca1e541e0710f7 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -177,6 +177,9 @@ endif
 
 " MAPPINGS (except for plugins, see PLUGIN SETTINGS below)
 
+" Easy way to exit insert mode.
+inoremap jj <Esc>
+
 " Disable arrow keys for all modes except command modes. Thanks to James Vega
 " (http://git.jamessan.com/?p=etc/vim.git;a=summary).
 map <right> <nop>