更改 Unix INFO 命令的编辑器

发布于 2024-07-14 03:57:13 字数 104 浏览 3 评论 0原文

目前我的“info”命令使用 Emacs 作为其默认编辑器。

$ info printf

有没有办法把它改成Vi/Vim?

Currently my "info" command uses Emacs as its default editor.

$ info printf

Is there a way to change it into Vi/Vim?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浅笑轻吟梦一曲 2024-07-21 03:57:13

我能看到的你最大的希望是使用 --vi-keys 命令开关运行它,它“使用类似 vi 和不太类似的键绑定”。 不幸的是,我没有看到任何其他可以对你有帮助的东西。

Your best hope that I can see is to run it with the --vi-keys command switch, which "uses vi-like and less-like key bindings". Unfortunately, I don't see anything else that can be of help to you.

十六岁半 2024-07-21 03:57:13

你需要一些能够理解 TexInfo 的东西,但我不相信 Vi/Vim 能理解。 您可能只是被 emacs 困住了。 更多信息请访问维基百科

You need something that understands TexInfo, which I don't believe Vi/Vim does. You might just be stuck with emacs. More info at wikipedia.

太阳公公是暖光 2024-07-21 03:57:13

尝试将 VISUAL 和 EDITOR 环境变量设置为 Vim 的完整路径。

Try to set the VISUAL and EDITOR environment variables to the full path of Vim.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文