Reputation: 70562
Whenever HG needs to prompt for a commit message, or whatever, it opens up Notepad. This is annoying. I have Vim7.3 installed, and I've tried setting the EDITOR
environment variable to point to gvim, to no avail.
I'm using PowerShell, but I've tried testing in both PowerShell and cmd. They both keep insisting on Notepad.
Upvotes: 3
Views: 1049
Reputation: 20881
Mercurial tries to pick which program to call to edit a commit message by trying the following (in order):
- HGEDITOR environment variable
- editor configuration option in [ui] section (in hgrc or passed with --config ui.editor command-line option).
- VISUAL environment variable
- EDITOR environment variable
- vi, if none of the above is set
Upvotes: 3