how to use git editor by default code example Example: set git editor $ git config --global core.editor vim