X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vim%2Fscript%2Fp4;h=4badc84029925984011311b87ccf4034218cd2cf;hb=41845218c2dd24eea1c07a52a8ffb16abe8da2b6;hp=286130b0649b70e83d6f86d1d2795bfc6d59e88a;hpb=f323f70672f417e225e7135de8b4c49cf81d3f70;p=profile.git diff --git a/.vim/script/p4 b/.vim/script/p4 index 286130b..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 @@ -56,6 +64,8 @@ fun! P4submit() normal G ?^Description: let @/ = "" + normal j + normal ^ " Set formatting. se noexpandtab