Map q to quit easily when submitting p4 and svn.
[profile.git] / .vim / script / p4
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