When I run vim from terminal PATH is the same as my terminal. But when I run gvim PATH is not reading properly.
Currently I'm using this fix to launch gvim, but it feel dirty:
bash -lc gvim
I tried adding the path to vimrc with:
let PATH='/home/user/.rvm/gems/ruby-2.1.0/bin:/home/user/.rvm/gems/ruby-2.1.0@global/bin:/home/user/.rvm/rubies/ruby-2.1.0/bin:/opt/project-neon/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/user/.cabal/bin:/home/user/.rvm/bin'
But it didn't work like I expected.
This doesn't work either:
set shell=bash\ --login
How can I make this work nicely in my vimrc?
I'm using Ubuntu.
PATH. I would suggest adding$HOME/bin/to yourPATHand putting symlinks there. And you should set yourPATHin your.bashrc... - Basile Starynkevitchbash -lc gvimworks for some reason... - lokhura$HOME/.bashrcand you should check, e.g. withecho $PATHin a terminal, that yourPATHis what you want. I guess your question is unrelated tovimactually! - Basile Starynkevitchvimdon't change thePATHit has inherited at startup time. - Basile Starynkevitch