]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Also use jj to exit command mode.
authorSimon Ruderich <simon@ruderich.org>
Fri, 15 Oct 2010 14:37:09 +0000 (16:37 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 15 Oct 2010 14:37:09 +0000 (16:37 +0200)
vimrc

diff --git a/vimrc b/vimrc
index e7fc77fdfc3536e06033ddf7c1d665aa602c1260..fef44f22ca13e31a36991bce41c41035d30551d4 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -184,6 +184,9 @@ endif
 
 " Easy way to exit insert mode.
 inoremap jj <Esc>
+" Also for command mode, thanks to http://github.com/mitechie/pyvim
+" (2010-10-15).
+cnoremap jj <C-C>
 
 " Disable arrow keys for all modes except command modes. Thanks to James Vega
 " (http://git.jamessan.com/?p=etc/vim.git;a=summary).