如何在Windows上为Mercurial指定不同的编辑器? [英] How do I specify a different editor for Mercurial on Windows?

查看:155
本文介绍了如何在Windows上为Mercurial指定不同的编辑器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当HG需要提示提交消息,或者什么,它会打开记事本。这很讨厌我安装了Vim7.3,我已经尝试将 EDITOR 环境变量设置为指向gvim,无效。

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.

我使用的是PowerShell,但是我已经在PowerShell和cmd中进行了测试。他们都坚持使用记事本。

I'm using PowerShell, but I've tried testing in both PowerShell and cmd. They both keep insisting on Notepad.

推荐答案

[ui]
editor = C:\Path\To\gvim.exe

在你的 .hgrc 文件。

这篇关于如何在Windows上为Mercurial指定不同的编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆