January 10, 2023

Use vim as default Git commit message

When you doing git merge in terminal sometime you get annoyed by the default merge message editor that git provided, most of the time is in nano and sometime because you are so pro in vim editor you type too fast and accidently append the usual comands to nano.

This annoyed me alot, so you want to change your default commit message editor to vim or nvim.

git config --global core.editor "vim"

Bonus:

you might want to change your zsh to vi mode too:

set -o vi