default VIM editor environment for SVN and GIT

Posted under » Version Control on 12 July 2019

Encountered "svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set," when you want to commit.

You can get around this by the -m option.. ie

svn commit -m "This is why I do this commit"

Or you can set SVN_EDITOR environment variable by

export SVN_EDITOR=vim

If you wish to set SVN_EDITOR environment variable permanently, then u need to add this line to your bash file which is located at your home folder. (eg: /home/anoneh/.bash_profile)

If .bash_profile does not exists, you should create one.

export SVN_EDITOR=vim

Similarly, you can do this for GIT by

$ git config --global core.editor vim

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS data