代码改变世界

How To Set SVN_EDITOR Environment Variable To Vim

2012-11-09 14:14  -king  阅读(365)  评论(0编辑  收藏  举报

Problem: You are trying to use the command svn propedit svn:externals and you are receiving the error:

svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found

Solution: Set vim as your SVN_EDITOR

Command:

export SVN_EDITOR=vim

 

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

export SVN_EDITOR=vim