Map q to quit easily when submitting p4 and svn.
authorIain Patterson <me@iain.cx>
Tue, 28 Jun 2011 10:40:13 +0000 (11:40 +0100)
committerIain Patterson <me@iain.cx>
Mon, 27 Jan 2014 14:49:54 +0000 (14:49 +0000)
.vim/script/p4
.vim/script/svn

index 56958f8..75dace6 100644 (file)
@@ -49,6 +49,8 @@ fun! P4submit()
         set bufhidden=hide
         setlocal noswapfile
         file [p4 diff\]
+        " Map q to quit easily.
+        noremap <silent> <buffer> q <C-W>q
 
         " Switch back to the top window and put the cursor by the description.
         wincmd k
index d5244fb..152d2c9 100644 (file)
@@ -24,6 +24,8 @@ fun! SVNcommit()
   set bufhidden=hide
   setlocal noswapfile
   file [svn diff\]
+  " Map q to quit easily.
+  noremap <silent> <buffer> q <C-W>q
 
   " Switch back to the top window.
   wincmd k