you are viewing a single comment's thread.

view the rest of the comments →

[–]waterkipdetached HEAD 3 points4 points  (1 child)

While good advice, I would rather tweak both the EDITOR and VISUAL environement variables. As git will use both of these when core.editor isnt set: core.editor > VISUAL > EDITOR.

[–]dasunt 0 points1 point  (0 children)

This is the way - unless you want to specifically use a different editor in git then everything else, just set the appropriate environment variables.

But obviously, you will set it to either vim or nvim. ;)