zsh:找不到命令:mvim

zsh: command not found: mvim

最近我安装了 MacVim and I'm having an issue with run it using iTerm. When I try to run it using the mvim from the iTerm it appeared command not found: mvim. I've tried the solution that provided on this thread,但没有用。有人可以帮忙吗?

在出现提示时回显 $PATH 变量的值; mvim 文件必须位于此处列出的目录之一中,以便在您尝试 运行 时找到它。

要么将 mvim 脚本移动到那里,要么通过 .zshrc.

将它当前所在的目录添加到您的 PATH 中

我有这样的方法: brew install macvim --override-system-vim --custom-icons --with-cscope --with-lua --enable-pythoninterp --enable-python3interp --ovrride-system-vi --with-python --with-python3

我是这样解决的,你可以试试:

brew unlink vim
brew link macvim