git config vim editor code example Example: config git editor vim git config --global core.editor "vim" or export GIT_EDITOR=vim