When you want to make a long commit message in Git and you don’t use -m flag it opens Vim editor for you to write your commit, the same happens when you want to use the rebase command and many other commands that you will need to edit a text. The default editor is Vim for doing these changes. To be honest, Vim is not my favorite editor and I know that is true for a lot of people, that is too much of a hassle for editing text 😉 .

And, it does not look like the other apps we use these days; However, some developers love Vim and I respect their opinion.

This can be a bigger issue for someone who is new to programming and might prefer something easier like our favorite Notepad++ or other text editors.

First of all, you need to find Notepad++.exe files path in your hard drive and then you need to run the following command.

64 bit Windows

git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

32 bit Windows

git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"


Great, now you are good to go, and when your Git needs a text editor, it will use the Notepad++.