From: Iain Patterson Date: Tue, 16 Jun 2009 11:09:38 +0000 (+0100) Subject: Latest attempt to fix commit diffs. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=eeed88dfb5042114753bc97292434c4e094c35d1;p=profile.git Latest attempt to fix commit diffs. --- 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 diff --git a/.vim/script/svn b/.vim/script/svn index 92cc8a5..bb05173 100644 --- a/.vim/script/svn +++ b/.vim/script/svn @@ -23,12 +23,7 @@ fun! SVNcommit() set buftype=nowrite set bufhidden=hide setlocal noswapfile - - " Change directory so "file [svn diff]" doesn't try to cd somewhere. - let l:cwd=getcwd() - cd / - file [svn diff] - cd l:cwd + file [svn diff\] " Switch back to the top window. wincmd k