More incorrect uses of noremap.
authorIain Patterson <me@iain.cx>
Mon, 27 Jan 2014 16:59:04 +0000 (16:59 +0000)
committerIain Patterson <me@iain.cx>
Mon, 27 Jan 2014 17:02:49 +0000 (17:02 +0000)
Normal commands should be mapped with nnoremap not noremap.

.vim/script/p4
.vim/script/svn

index 7aa16ba..4badc84 100644 (file)
@@ -50,7 +50,7 @@ fun! P4submit()
         setlocal noswapfile
         file [p4 diff\]
         " Map q to quit easily.
         setlocal noswapfile
         file [p4 diff\]
         " Map q to quit easily.
-        noremap <silent> <buffer> q <C-W>q
+        nnoremap <silent> <buffer> q <C-W>q
 
         " Vim 7.4 really doesn't want us to quit windows from a script.
         try
 
         " Vim 7.4 really doesn't want us to quit windows from a script.
         try
index 7b4da64..223d0f0 100644 (file)
@@ -25,7 +25,7 @@ fun! SVNcommit()
   setlocal noswapfile
   file [svn diff\]
   " Map q to quit easily.
   setlocal noswapfile
   file [svn diff\]
   " Map q to quit easily.
-  noremap <silent> <buffer> q <C-W>q
+  nnoremap <silent> <buffer> q <C-W>q
 
   " Vim 7.4 really doesn't want us to quit windows from a script.
   try
 
   " Vim 7.4 really doesn't want us to quit windows from a script.
   try