Skip to main content

Make vim default editor for git and ubuntu

Member for

3 years 1 month
Submitted by admin on

To make vim the default editor for Git or your entire operating system. Firstly make sure that vim is installed and then you can choose 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