[ACCEPTED]-Change SVN message editor-svn

Accepted answer
Score: 42

You can add corresponding setting in your 1 $HOME/.subversion/config or %USERPROFILE%\Subversion\config. e.g. for my Windows VM I have got:

editor-cmd = c:/emacs-24.3/bin/runemacs.exe
Score: 33

Update your SVN_EDITOR environment variable. You 3 can try


to see if this is set to something 2 else in your shell - in which case you might 1 want to take a look at your .bashrc (or similar) file.

Score: 23

The editor to be used by SVN can be set 5 at the Subversion config, as vvlevchenko suggested. Edit the 4 corresponding setting in your %USERPROFILE%\Subversion\config on Windows 3 respectively ~/.subversion/config on BSD, Linux, Mac OS.

To use 2 Emacs with SVN on Windows:

editor-cmd = c:/emacs-24.3/bin/runemacs.exe

To use Nano with 1 SVN on BSD, Linux or Mac OS:

editor-cmd = nano
Score: 15

I also found this here (but changed from vim 3 to gedit):


export SVN_EDITOR=gedit

To permanently set this 2 environment variable, put the below line 1 in your ~/.bash_profile file:

sudo gedit ~/.bash_profile
export SVN_EDITOR=gedit

(save file)

Score: 3

vim ~/.bashrc

export SVN_EDITOR=vim   

source ~/.bashrc


Score: 2

On Ubuntu, default editor for Subversion 3 commit messages can be also changed by selecting 2 default general command line text editor 1 as described here: https://askubuntu.com/a/615181

sudo update-alternatives --config editor

  Selection    Path                Priority   Status
* 0            /bin/nano            40        auto mode
  1            /bin/ed             -100       manual mode
  2            /bin/nano            40        manual mode
  3            /usr/bin/vim.basic   30        manual mode
  4            /usr/bin/vim.tiny    10        manual mode

More Related questions