I would prefer to write my commit messages in Vim, but it is opening them in Emacs.
How do I configure Git to always use Vim? Note that I want to do this globally,
Copy paste this:
git config --global core.editor "vim"
In case you'd like to know what you're doing. From man git-commit:
ENVIRONMENT AND CONFIGURATION VARIABLES
The editor used to edit the commit log message will be chosen from the
GIT_EDITORenvironment variable, thecore.editorconfiguration variable, theVISUALenvironment variable, or theEDITORenvironment variable (in that order).