如何在 Windows 下将 gvim 用于 svn 提交消息? [英] How can I use gvim for svn commit messages under Windows?

查看:49
本文介绍了如何在 Windows 下将 gvim 用于 svn 提交消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 *nix 下,我可以将 SVN_EDITOR 设置为 gvim --nofork 来实现这一点,但这在 Windows 下似乎不起作用.有什么解决办法吗?

Under *nix I can set SVN_EDITOR to gvim --nofork to do the trick, but that doesn't seem to work under Windows. Is there any solution for that?

推荐答案

如果你已经安装了批处理文件 (c:\windows\gvim.bat),只需将 EDITOR 设置为 gvim-f,批处理文件处理 -f 参数并设置 no-fork 选项.

If you have installed the batch files (c:\windows\gvim.bat), just set EDITOR to gvim -f, the batch file processes the -f argument and sets the no-fork option.

批处理文件中的技巧是运行 START/WAIT path\to\gvim.exe %*(参见 /WAIT 参数).

The trick in the batch file is running START /WAIT path\to\gvim.exe %* (see the /WAIT argument).

如果您没有批处理文件,只需使用上述命令创建一个新文件,并将 EDITOR 设置为新创建的批处理文件.

If you don't have the batch files, just create a new one with the command above, and set EDITOR to the newly create batch file.

这篇关于如何在 Windows 下将 gvim 用于 svn 提交消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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