Gary Johnson wrote: > On 2012-09-11, Bee wrote: > > Both MacVim and Mac terminal vim use the PATH I have set. > > > > vim-app, a gui version of terminal vim compiled from MacPorts vim-app > > @7.3.646_0, does NOT use my PATH. > > > > I found it did not work when trying > > :r !gcal > > (/bin/bash: line 1: gcal: command not found) > > > > How would I get vim-app to start with my PATH? > > I'm not all that familiar with Macs, but some Unix principles may > apply. The window manager that starts your vim-app has to see the > correct PATH in its environment as it starts. This usually means > setting PATH in your ~/.profile, not in your ~/.bashrc. You'll also > have to restart your window manager, e.g. by logging out and back > in, for the new PATH to have any effect. > > > This did not work ( :help path ) > > :set path=.,/opt/local/bin,/opt/local/sbin > > That's the wrong path. 'path' is a Vim option. See ":help 'path'". > What you want is the environment variable PATH which Vim refers to > as $PATH. This should work: > > :let $PATH = $PATH . ':/opt/local/bin:/opt/local/sbin' > > HTH, > Gary
Thank you, Gary. The /opt/local is the MacPorts base, it is important that it is search first. :let $PATH = ':/opt/local/bin:/opt/local/sbin:' . $PATH And it works great. Bill -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
