X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vim%2Fscript%2Fp4;h=7aa16bad8b8be44b70f168d623cbde9808581bb9;hb=06d0d0563b6cee6b5291563c080daac155b83cb2;hp=75dace6e9af2c4e2c64de142703096d3e4355046;hpb=f0503276edd74aa465df5248ff5888df13646f18;p=profile.git diff --git a/.vim/script/p4 b/.vim/script/p4 index 75dace6..7aa16ba 100644 --- a/.vim/script/p4 +++ b/.vim/script/p4 @@ -52,6 +52,12 @@ fun! P4submit() " Map q to quit easily. noremap q q + " Vim 7.4 really doesn't want us to quit windows from a script. + try + au QuitPre * qa! + catch + endtry + " Switch back to the top window and put the cursor by the description. wincmd k resize 10