卸载 MacVim
我已从 /Applications/
目录中删除了 MacVim,但在终端中输入 vim
时显示错误:没有这样的文件或目录:/Applications/MacVim .app/Contents/MacOS/Vim
如何重新使用预安装的 vim 副本?
I've removed MacVim from my /Applications/
directory but in terminal when I type vim
an error is displayed: no such file or directory: /Applications/MacVim.app/Contents/MacOS/Vim
How do I go back to using the pre installed copy of vim?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试
brew uninstall macvim
。如果MacVim 与brew 一起安装将会有帮助。
Try
brew uninstall macvim
.It will help if MacVim was installed with brew.
在终端中输入:
which vim
当你输入 vim 时,它会告诉你它正在运行什么。
如果它不是
/usr/bin/vim
您可能可以安全地删除它,以便它可以再次找到预安装的版本。In the terminal type:
which vim
That'll tell you what it's running when you type vim.
And if it's not
/usr/bin/vim
you're probably safe to delete it so it can find the pre installed version again.