I went to check something into Subversion using Vi (i.e. Vim) as my EDITOR, and I got the following:
$ svn ciSure enough, even entering Vim and immediately exiting would return a non-zero exit status:
svn: Commit failed (details follow):
svn: system('vi svn-commit.tmp') returned 256
$ viI read somewhere that this might be because of a bad plugin. Sure enough, the following fixed it:
$ echo $?
1
cd ~/.vimWeird.
mv doc/rails.txt plugin/rails.vim ~/.Trash
Comments
$ env | grep EDITOR
EDITOR=vim
$ which vim
/opt/local/bin/vim
vi
$ which vim
/usr/bin/vim
Quite why the rails plugin would affect this is another matter...I initially put it down to a problem with the Leopard vim build as everything was hunky-dory under 10.4.
Now I can go back to doing SVN commits without using the "-m" option :-)
Nice idea, although I still think Vim shouldn't be exiting with a non-zero status.