我使用vim在python中编写小脚本,并在LaTeX中排版。因此,通过输入:!python或:!pdflatex等命令从vim运行应用程序非常有用。但是在升级到el capitan之后,这似乎不再起作用了,得到像/bin/bash: pdflatex: command not found这样的消息。但有趣的是,直接从终端运行应用程序是可能的。有人知道如何为vim设置正确的信息吗?
发布于 2015-12-08 20:15:16
$PATH variable not properly set in gvim/MacVim when it is opened from the finder首先检查:!echo $SHELL,看看外壳是否设置为bash
然后尝试在~/.bash_profile中设置路径
export PATH=<dir_contains_pdflatex>:$PATHhttps://stackoverflow.com/questions/34165064
复制相似问题