X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vim%2Fscript%2Fp4;h=4badc84029925984011311b87ccf4034218cd2cf;hb=41845218c2dd24eea1c07a52a8ffb16abe8da2b6;hp=75dace6e9af2c4e2c64de142703096d3e4355046;hpb=62e3b6db3f63d02dc4e47fe7cc4d56b1f2d4b9ef;p=profile.git diff --git a/.vim/script/p4 b/.vim/script/p4 index 75dace6..4badc84 100644 --- a/.vim/script/p4 +++ b/.vim/script/p4 @@ -50,7 +50,13 @@ fun! P4submit() setlocal noswapfile file [p4 diff\] " Map q to quit easily. - noremap q q + nnoremap 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