如何在 Cygwin 上安装 vim
首先,我在setup.exe中看到可以正常安装vim,但是我意识到我想安装带有Ruby支持的vim。我下载了 vim 7.3,解压并运行
./config --enable-ruby-interp
,一切配置都很好。然后我运行
$ make && make install
,一切都安装正常,但它在 /usr/local/bin
中放置了 vim.exe
。我不需要 vim.exe
,我想要一个 vim
,我可以通过
$ vim
在 Cygwin shell 中输入来运行它。
有没有办法告诉 vim 在安装过程中安装它,就像我在 Linux 上一样?意思是,忽略我在 Windows 上的事实?
现在,当我在 shell 中输入 vim 时,它什么也没做。所以它找到了它,但它没有用它做任何事情。
First, I saw that you can install vim normally in the setup.exe, but I realized that I wanted to install vim with Ruby support. I downloaded the vim 7.3, untared it and ran
./config --enable-ruby-interp
and everything configured fine. Then I ran
$ make && make install
and everything installed ok, but it put a vim.exe
in /usr/local/bin
. I don't want a vim.exe
, I want a vim
, which I can run by typing
$ vim
in my Cygwin shell.
Is there a way to tell vim during the installation to install it like it would if I was on Linux? Meaning, to ignore the fact that I'm on Windows?
Now, when I type vim
into the shell, it just does nothing. So it found it, but it doesn't do anything with it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将支持 Ruby 的 Windows 版本的 Vim(例如 这个)拖放到您的 PATH 中(首先将 vim 的文件夹添加到 PATH 中),然后当您从 cygwin 内部运行
vim
时,它将运行该文件夹(PATH 中的第一个 vim.exe 也应该在 cygwin 中工作) MinTTY)请记住在从 Windows 设置更改 PATH 后关闭并重新打开 shell。
You can drop a Windows build of Vim that has Ruby support (like this one) into your PATH (add vim's folder to PATH before everything else) and then when you run
vim
from inside cygwin it will run that (the first vim.exe in PATH. should also work in cygwin's MinTTY)Remember to close and re-open your shell after changing PATH from windows settings.
重新安装 cygwin,或重新安装 git-bash。 (其中还包括 cygwin 环境)
reinstall the cygwin, or re-install git-bash. (which also included the cygwin environment)