X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vim%2Fscript%2Fp4;h=4badc84029925984011311b87ccf4034218cd2cf;hb=41845218c2dd24eea1c07a52a8ffb16abe8da2b6;hp=56958f88335b5673edacc742f29670668c0eb17c;hpb=67fb88faeb67ebc6a6401ca8935364f5a2ee68e3;p=profile.git diff --git a/.vim/script/p4 b/.vim/script/p4 index 56958f8..4badc84 100644 --- a/.vim/script/p4 +++ b/.vim/script/p4 @@ -49,6 +49,14 @@ fun! P4submit() set bufhidden=hide setlocal noswapfile file [p4 diff\] + " Map q to quit easily. + 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