X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vim%2Fscript%2Fp4;h=8b6ee166cd75e988106e20607085d6b9aa43b278;hb=eeed88dfb5042114753bc97292434c4e094c35d1;hp=59e28a11259629ae25ce2c353c4c71572f6fdd9b;hpb=21daee34ff2d1d0ca13a79abb315e689ba22d2e3;p=profile.git diff --git a/.vim/script/p4 b/.vim/script/p4 index 59e28a1..8b6ee16 100644 --- a/.vim/script/p4 +++ b/.vim/script/p4 @@ -37,12 +37,7 @@ fun! P4submit() set buftype=nowrite set bufhidden=hide setlocal noswapfile - - " Change directory so "file [p4 diff]" doesn't try to cd somewhere. - let l:cwd=getcwd() - cd / - file [p4 diff] - cd l:cwd + file [p4 diff\] " Switch back to the top window and put the cursor by the description. wincmd k