"vi" 是什么意思?不被识别为内部或外部命令、可操作程序或批处理文件。”意思是?

发布于 2024-09-25 05:10:49 字数 132 浏览 0 评论 0 原文

在 Windows 中使用 mutt 发送邮件时,我收到错误消息: “vi”不被识别为内部或外部命令, 可运行的程序或批处理文件。 如何调试该错误。 我已经安装了 Cygwin 和 VI 编辑器包。但它似乎不起作用!

While sending a mail using mutt in windows I got the error saying:
'vi' is not recognized as an internal or external command,
operable program or batch file.

How to debug that error.
I have already installed Cygwin with the VI editor package.But it doesn't seem to be working!!

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

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

发布评论

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

评论(2

心如荒岛 2024-10-02 05:10:49

此错误消息通常意味着在 PATH 环境变量中定义的任何文件夹位置中都找不到 vi 可执行文件。

要解决此问题,请找到 vi 可执行文件的文件夹位置并将其添加到 路径

This error message generally means the vi executable file was not found in any of the folder locations defined in the PATH environment variable.

To fix this find the folder location of the vi executable file and add it to the PATH.

风蛊 2024-10-02 05:10:49

更具体地说,您的 PATH 环境变量缺少“C:\cygwin\bin”目录,但此答案假设您接受 Cygwin 安装默认位置。如果您找不到问题,只需将 Cygwin 重新安装到磁盘上的同一位置,然后在接受默认值之前仔细检查提出的所有问题。

这个问题的标题省略了 Cygwin,因此 Google 将其视为通用 vi 路径问题,也将 Powershell 用户发送到此页面。

如果您只想让 VI 在 Powershell 中工作,我现在不建议使用 Cygwin。相反:

  1. 安装 Chocolatey https://chocolatey.org/install
  2. 打开 Powershell AS 管理员
  3. Chocolatey.exe 安装 vim

技术上 Chocolatey不是必需的 - 您可以从 vim 网站获取 vim。但 Chocolatey 将使安装工作变得更加容易,包括提供其他 UNIX 实用程序。

More specifically, your PATH environment variable is missing "C:\cygwin\bin" directory, but this answer assumes you accepted the Cygwin installation default location. If you can not find the problem, simply re-install Cygwin to the same location on disk and then carefully review all of the questions asked before accepting defaults.

The Title of this question omits Cygwin, so Google treats it like a generic vi pathing issue, sending Powershell users to this page as well.

If you just want VI working in Powershell, I don't suggest Cygwin these days. Instead:

  1. Install Chocolatey https://chocolatey.org/install
  2. Open Powershell AS Administrator
  3. chocolatey.exe install vim

Technically Chocolatey is not required - you could get vim from the vim website. But chocolatey will make easier work of the install, including offering other UNIX utilities.

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