How To Set Subversion SVN_EDITOR Environment Variable To vim or vi


# svn commit
svn: Commit failed (details follow):
svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the –message (-m) or –file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no ‘editor-cmd’ run-time configuration option was found


# export SVN_EDITOR=vim

Even Futher:

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