From eeed88dfb5042114753bc97292434c4e094c35d1 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Tue, 16 Jun 2009 12:09:38 +0100 Subject: [PATCH] Latest attempt to fix commit diffs. --- .vim/script/p4 | 7 +------ .vim/script/svn | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) 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 -- 2.7.4