Make vim default editor for git and ubuntu

You are here

To make vim the default editor for Git or your entire operating system. Firslty make sure that vim is installed and then you can chose one of the options below.

 

If you want to change Git default editor only use the following

$~ git config --global core.editor "vim"

If you want to change the default editor across the whole installation use this command

$~ sudo update-alternatives --config editor