Search code examples
macosvimosx-elcapitan

Set path to applications for vim on mac capitan


I have used vim to make small scripts in python and typesetting things in LaTeX. So it is very useful to run applications from vim by typing :!python or :!pdflatex etcetera. But after upgrading to el capitan, this seems not to work anymore, get message like /bin/bash: pdflatex: command not found. But the funny thing is that it is possible to run the applications directly from terminal. Anyone that know how to set the correct that for vim as well?


Solution

  • $PATH variable not properly set in gvim/MacVim when it is opened from the finder first check :!echo $SHELL and see if SHELL is set to bash or not

    then try to set your path in your ~/.bash_profile?

    export PATH=<dir_contains_pdflatex>:$PATH