How to use correct ruby in vim ? How to modify $PATH in VIM?

后端 未结 7 939
别那么骄傲
别那么骄傲 2020-12-14 04:41

I use plain Vim with ruby support on Lion (installed by gist). I am using ruby with rbenv so my path looks like /users/me/.rbenv/shims:.....

From within vim the pat

7条回答
  •  一向
    一向 (楼主)
    2020-12-14 05:06

    rvm also has this problem. If zsh is your default shell when it starts /etc/zshenv gets executed.

    This executes /usr/libexec/path_helper. That sets up the path based on the contents /etc/paths and /etc/paths.d/.

    The faq for rvm mentions moving /etc/zshenv to /zsh/zshrc. I did this and it removed the /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin from the start of my path in macvim.

提交回复
热议问题