]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Only map NERDCommenterToggle in normal mode.
authorSimon Ruderich <simon@ruderich.org>
Sat, 30 Jun 2012 13:05:51 +0000 (15:05 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 30 Jun 2012 13:05:51 +0000 (15:05 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 26f5383566b9652a1ecb983b7ff092ede8c41e30..4d15af8731224876a8d95244eee9fa0bfab2d2c4 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -641,7 +641,7 @@ if has('eval')
     " Don't create any mappings I don't want to use.
     let g:NERDCreateDefaultMappings = 0
     " Map toggle comment.
-    map <Leader><Leader> <Plug>NERDCommenterToggle
+    nmap <Leader><Leader> <Plug>NERDCommenterToggle
 
 " XPTemplate settings.
     " Try to maintain snippet rendering even after editing outside of a