Subversion with MacVim configured as an editor

I use Subversion to check the file on OSX. I have a variable EDITORconfigured on MacVim

My .profileincludes:

export EDITOR=/Applications/MacVim/mvim

When I enter the -m( svn ci somefile) option , MacVim starts up, but then Subversion immediately displays:

Log message unchanged or not specified
(a)bort, (c)ontinue, (e)dit:

It displays this before I get the option to save the log message to MacVim.

Is there a way to get SVN to use MacVim as a log message editor?

+5
source share
4 answers

mvim -f, . , , , .

+11

Apple Terminal:

export EDITOR='mvim -f -c "au VimLeave * !open -a Terminal"'

iTerm iTerm2:

export EDITOR='mvim -f -c "au VimLeave * !open -a iTerm"'

" Faq - macvim - GitHub: MacVim Git commit?". , Subversion.

+4

. open --help:

-W, --wait-apps , ( ).

export EDITOR="open --wait -a /Applications/MacVim/mvim"

, script $EDITOR, , script. [EDIT: , . .]

0

I use textmate as my svn editor, and I had the same problem as yours. But my solution is to install textmate to wait until the file is closed.

I added this to my .bash_profile

export SVN_EDITOR="mate -w"

-w to wait

0
source

All Articles