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:
Consider switching your zsh/bash shell to Vi mode for enhanced efficiency and a better command-line experience.
set -o vi