HOWTO: use vim as default editor for git

less than 1 minute read

Pick your favorite from the following ones:

$ export GIT_EDITOR=vim  
$ git config --global core.editor "vim"  
$ export VISUAL=vim  
$ export EDITOR=vim

Git will respect this order.


Tags: ,

Categories: ,

Updated:

Leave a Comment