vscode-open-in-vim icon indicating copy to clipboard operation
vscode-open-in-vim copied to clipboard

Opens wrong version of Vim - MacOS

Open wayneforrest opened this issue 4 years ago • 1 comments

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?

wayneforrest avatar Jul 29 '20 08:07 wayneforrest

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.

wayneforrest avatar Jul 29 '20 08:07 wayneforrest