vscode-open-in-vim
vscode-open-in-vim copied to clipboard
Opens wrong version of Vim - MacOS
I have installed the brew version of Vim, and when I run open in Vim
, the wrong version
of vim is used; it is launching the default Mac version of Vim, even though I have macos.iterm set.
which vim
In iTerm shows the brew
version of Vim, which I intend to use.
How can I fix this?
I fixed the issue by setting up my shell, in iTerm.
The plugin seems to use bash
, hard coded.
And the path to vim was not set for my bash profile but for my zsh profile. (I assume this)
iTerm2 -> Preferences -> Profiles -> Default and in the General Tab set the Command to /usr/local/bin/zsh instead of Login shell.