[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim-mac
Subject:    Re: Setting of $PATH in vimrc
From:       Benji Fisher <benji () member ! AMS ! org>
Date:       2006-06-08 3:04:03
Message-ID: 20060608030403.GA11151 () localhost ! localdomain
[Download RAW message or body]

On Wed, Jun 07, 2006 at 11:44:55AM +0200, Brad wrote:
> Hi,
> 
> just downloaded the vim7.0-ppc.tar.gz and installed. It looks great!
> 
> 
> Some $PATH problems though:
> 
> I noticed that when I drag the gVim icon to the dock and start from
> there, the $PATH that I set in my .profile doesn't make it into vim.
> 
> I had a look at Vim.app/Contents/Resources/vim/vimrc, and it looks as
> if the check
> 
> ps xw | grep "Vim -psn" | grep -vc grep
> 
> to see whether Vim.app was started from the Finder doesn't cover the
> case where it is started from the doc (in which case it looks like it
> appears as "Vim -go", not "Vim -psn").
> 
> I replaced that with
> 
> ps xw | grep "Vim -\(psn\|go\)" | grep -vc grep
> 
> which seems to work.
> 
> If this is blatantly wrong or anything, please let me know.

     That looks reasonable.  I will change the system vimrc file that I
distribute to do the same thing.

     It might be more reliable to use Eljay's advice (other post on this
thread) but my goal is to make it work OOTB for as many users as
possible.

					--Benji Fisher
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic