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