X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vim%2Fscript%2Fsvn;fp=.vim%2Fscript%2Fsvn;h=8ee0390feb7b886c00f10c32c7afc40d3f52845d;hb=87fd00a95f29f7c98cef42dacc16910b243d81ff;hp=fcca7e4ad9c7dd3c0c9358c8c0964b4a4035b547;hpb=91067b05d0ae3dd4388065c4767148aa11ac6486;p=profile.git diff --git a/.vim/script/svn b/.vim/script/svn index fcca7e4..8ee0390 100644 --- a/.vim/script/svn +++ b/.vim/script/svn @@ -1,4 +1,4 @@ -" $Id$ vim: set syntax=vim: +" $Id$ vim: se syntax=vim: " Define the function we'll use. It's easier to do this than to faff about " trying to run a sequence of normal mode commands. fun! SVNcommit() @@ -14,9 +14,10 @@ fun! SVNcommit() 1 delete se nobuflisted - set buftype=nofile + set buftype=nowrite set bufhidden=hide setlocal noswapfile + file [svn diff] " Switch back to the top window. wincmd k @@ -34,10 +35,4 @@ delfunction SVNcommit exe "se cmdheight=" . s:cmdheight " Close the scratch buffer. -if version >= 700 - " Vim 7 lets us close the buffer by number. The changelist is always in #1. - au BufWinLeave qa! -else - " Prior versions can only do it by name. Fall back to a temporary file. - au BufWinLeave /tmp/tmp.*.* qa! -endif +au BufWinLeave qa!