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,
For Mac OS X, using TextEdit or the natural environmental editor for text:
git config --global core.editor "open -W -n"
To Make Visual Studio Code (vscode) your default git editor
git config --global core.editor "code --wait"
Create a file called 'k.sh', add the following text and place in your home directory (~):
winpty "C:\Program Files (x86)\Kinesics Text Editor\x64\k.exe" $1
At the git prompt type:
git config --global core.editor ~/k.sh