how to set vim as default for git code example Example: set git editor to vim git config --global core.editor "vim"