vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] I can't get VILE_STARTUP_PATH to do what I expected it to do


From: Gary Jennejohn
Subject: Re: [vile] I can't get VILE_STARTUP_PATH to do what I expected it to do
Date: Thu, 2 Jun 2016 02:22:26 +0200

On Wed, 1 Jun 2016 19:38:22 -0400
Thomas Dickey <address@hidden> wrote:

> On Thu, Jun 02, 2016 at 01:05:54AM +0200, Gary Jennejohn wrote:
> > On Wed, 1 Jun 2016 21:23:35 +0100
> > Chris Green <address@hidden> wrote:
> >   
> > > I want to change the location of my .vilerc startup file (to $HOME/bin
> > > rather than $HOME).
> > > 
> > > So I set VILE_STARTUP_PATH to $HOME/bin and moved .vilerc to $HOME/bin
> > > but it doesn't appear to work.  I've checked the environment:-
> > > 
> > >     chris$ env | grep VILE
> > >     VILE_STARTUP_PATH=/home/chris/bin
> > > 
> > > This is on linux (xubuntu).  Does setting VILE_STARTUP_PATH not
> > > override the compiled in value?
> > > 
> > > I guess I can use 'source /home/chris/bin/.vilerc' in a VILEINIT
> > > variable instead.
> > >   
> > 
> > This is all explained in the Invocation section of the vile :help
> > file.  VILE_STARTUP_PATH must be set in the confguration at compile
> > time.  
> 
> It's more flexible than that - VILE_STARTUP_PATH is an environment
> variable which overrides the compiled-in default for $startup-path
> 
> However, there are other things in the path, which you can see using
> 
>       2:which-source .vilerc
> 
> for example:
> --------------------------------------------------------------------------------
> Show which source-paths are tested for:
>       .vilerc
> ("*" marks found-files)
> 
> $cwd
>       .vilerc
> $HOME
> *     /users/tom/.vilerc
> $startup-path
> *     /users/tom/bin/.vilerc
>       /usr/share/vile/.vilerc
> --------------------------------------------------------------------------------
> 

Right.  I misread the Invocation section and thought it was only for
VMS unless it was compiled in.

So, why doesn't it work for OP?

-- 
Gary Jennejohn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]