]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Disable all array keys in command mode.
authorSimon Ruderich <simon@ruderich.org>
Fri, 24 Sep 2010 22:50:05 +0000 (00:50 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 24 Sep 2010 22:50:05 +0000 (00:50 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 946ff88b9b2e8037b51fbdd5c06caa1bf4742855..849e84dba99183137191ef1064abca6b5a1c0a22 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -195,10 +195,12 @@ imap <right> <nop>
 imap <left>  <nop>
 imap <up>    <nop>
 imap <down>  <nop>
-" Also disable up and down array in command mode, use <C-p>/<C-n> as
-" replacement (see below).
+" Also disable arrow keys in command mode, use <C-p>/<C-n> as replacement (see
+" below).
 cmap <up> <nop>
 cmap <down> <nop>
+cmap <right> <nop>
+cmap <left>  <nop>
 
 " Use Ctrl-P/Ctrl-N as replacement for <Up>/<Down> in command mode. Thanks to
 " abstrakt and grayw in #vim on Freenode (2010-04-12 21:20).