How do I make Git use the editor of my choice for commits?
Asked 07 September, 2021
Viewed 3.1K times
  • 58
Votes

I would prefer to write my commit messages in Vim, but it is opening them in Emacs.

How do I configure Git to always use Vim? Note that I want to do this globally, not just for a single project.

29 Answer