I know there are a lot of options out there when it comes to basic text editors, but for some reason I gravitate towards Notepad++ every time. It’s clean, fast, and handles all files I have thrown at it very well. With my recent usage of git for my projects, I wanted to use a familiar editor for my commit messages. Simply put, the vim editor default is complicated and cumbersome, and frankly I have enough things to remember then try and remember all the keystrokes in vim. So I wanted to use notepad++, since it is my editor of choice.
Connecting it to git the normal way (setting the core.editor to the notepad++.exe file) was not working so I hit the web to find a solution, and David Cole posted the following:
$ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe'\ -multiInst -notabbar -nosession -noPlugin"
Check out the source links to check out Notepad++ and also view David Cole’s post.
Notepad++ (or download from Filehippo.com)
Source: The Kitware Blog (David Cole)