git commit opened editor lost typing

·

1 min read

Setup my new laptop, when I run git commit, vi will pop up, but when I typing the commit messages, letters constantly get lost.

To solve it, just change the default editor to vim:

$ git config --global core.editor /usr/bin/vim