I have an issue where in MacVim, I don't get any syntastic/eslint related functionality. When I run !which eslint
in macvim, I get "eslint not found" - eslint is definitely installed.
If I run !which eslint
on iTerm, I get the correct location of eslint (/Users/fpe/.nvm/versions/node/v4.4.5/bin/eslint
).
It looks like MacVim is not aware of my $PATH
. I didn't set anything specifically. I am also using zsh, if that makes a difference.
How do I fix this?
-l
to'shellcmdflags'
so that it runs a login shell and sources.zprofile
which eslint
working now with a hardcoded PATH :)PATH
in.zshenv
for this reason - it affects every invocation of zsh.