When the default editor vi in the computer is deleted, you need to specify the following command to use vim as the editor for git commit
git config --global core.editor vim
When the default editor vi in the computer is deleted, you need to specify the following command to use vim as the editor for git commit
git config --global core.editor vim