config git editor vim

C++
git config --global core.editor "vim"

or

export GIT_EDITOR=vim
Source

Also in C++: