Alpha Liu
Alpha Liu

Reputation: 147

$PATH in vim is different from which in shell? (Mac OSX)

As you know that the ctags in OSX is a basic version, and I install a full version of ctags using homebrew, but when I wanna use it in Vim's command mode, it always ran the basic one. So I checked the $PATH var in Vim's command mode, like !echo $PATH, and it showed that /usr/local/bin followed the /usr/bin, which was different from the shell environment $PATH, so please kindly tell me how to fix this, many thanks!. BTW, I changed the $PATH in vimrc file, but it only affected the $PATH if I type the command echo $PATH in Vim's command mode, not !echo $PATH.

Upvotes: 3

Views: 1378

Answers (1)

zah
zah

Reputation: 5384

Unfortunately, MacVim won't be affected by paths you set in .profile or .bashrc.

You can set paths affecting all programs on Mac OS X by using the /etc/paths and /etc/paths.d/ mechanisms. More detailed explanation here:

https://serverfault.com/questions/16355/how-to-set-global-path-on-os-x

Upvotes: 1

Related Questions