X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.vim%2Fscript%2Fp4;h=75dace6e9af2c4e2c64de142703096d3e4355046;hp=404d80d98a1677c7802a8767774452beb0d33a0d;hb=62e3b6db3f63d02dc4e47fe7cc4d56b1f2d4b9ef;hpb=2be8b73f0cbc7eef32fb1cbecbb215890858ccb1 diff --git a/.vim/script/p4 b/.vim/script/p4 index 404d80d..75dace6 100644 --- a/.vim/script/p4 +++ b/.vim/script/p4 @@ -49,6 +49,8 @@ fun! P4submit() set bufhidden=hide setlocal noswapfile file [p4 diff\] + " Map q to quit easily. + noremap q q " Switch back to the top window and put the cursor by the description. wincmd k @@ -56,6 +58,12 @@ fun! P4submit() normal G ?^Description: let @/ = "" + normal j + normal ^ + + " Set formatting. + se noexpandtab + se ts=8 endif catch " We get here if no blurb was deleted. This is the case if we aren't