Skip to content

Commit c97fbb6

Browse files
Michael Scherervim-scripts
authored andcommitted
Version 0.3
integrate patch that people send : - no longer ask for confirmation when closing windows - place focus where it belong
1 parent 7199124 commit c97fbb6

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

ftplugin/svn.vim

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
" made by Michael Scherer ( misc@mandrake.org )
2-
" $Id: svn.vim 146 2004-06-06 14:54:11Z misc $
3-
" TODO - do not ask if the new buffer should be wrote
4-
" on quit
2+
" $Id: svn.vim 282 2005-01-31 21:24:55Z misc $
3+
" TODO - rewrite in pure vim functions
4+
"
5+
" 2004-09-13 : Lukas Ruf ( lukas.ruf@lpr.ch )
6+
" - re-ordered windows
7+
" - set focus on svn-commit.tmp (that's where one has to write)
8+
" - set buffer type of new window to 'nofile' to fix 'TODO'
9+
"
10+
" 2005-01-31 :
11+
" - autoclose on exit, thanks to Gintautas Miliauskas ( gintas@akl.lt )
12+
" and tips from Marius Gedminas ( mgedmin@b4net.lt )
513
"
614
" to use it, place it in ~/.vim and add
715
" au BufRead svn-commit.tmp source ~/.vim/svn.vim
@@ -31,7 +39,9 @@ vim.command("new")
3139
win.height=len(win.buffer)+2
3240
# use normal to remove annoying 'hit enter messages'
3341
vim.command("normal :r!svn diff " + list_of_files + "\n")
34-
vim.command("set ft=diff")
42+
vim.command("set previewwindow ft=diff")
43+
vim.command("set buftype=nofile")
44+
vim.command("wincmd p")
3545
vim.command("wincmd R")
3646
vim.command('goto 1')
3747

0 commit comments

Comments
 (0)