Monday, July 16, 2012

Re: running commands with !

On Sun, July 15, 2012 18:01, eNG1Ne wrote:
> Coming back to this after updating the program, updating .bashrc, logging
> off and logging on again ... I can now add the following information:
>>echo $PATH in a console returns what I'd expect, with my new
>> usr/local/bin/mup6-0/bin at the end
> :echo $PATH in a vim session returns a different version of $PATH, without
> the subdirectory
>
> Now, I can follow what Ben says about definitions in .bashrc not being
> recognised by vim - but I don't have a .bash_profile, or any .zsh files at
> all. So, which file do I have to modify to set up a $PATH definition that
> vim will notice and pay attention to?

This depends on your shell and you should read its documentation.

For bash, to have the correct PATH in your subshell, put the the
$PATH definition into .bash_profile instead of .bashrc.

It should however be possible, to add the -i flag to the 'shellcmdflag'
option, so that Vim starts an interactive shell.

regards,
Christian

--
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

No comments:

Post a Comment