On Monday, February 3, 2014 12:52:48 AM UTC+4, Bee wrote:
> On Sunday, February 2, 2014 12:06:25 PM UTC-8, ZyX wrote:
> > > How about using a shell script: 
> > ? I am talking about unsetting environment variables which are set in vim. 
> > How is this script related?
> 
> Your original post said:
> vim -u NONE -c 'unlet $PATH'
> 
> It looked as though you were referring to system not vim.
> 
> If you were trying to use 'unset' in vim it is without the '$'.

With. I am talking about unsetting *environment* variable. `$PATH` was used as 
the example of variable which is expected to exist to make example less 
verbose. The specific code I use is defining environment variable and *then* 
undefining it. No shell script can be helpful because it is defined inside vim.

> 
> vim -u NONE -c 'unlet PATH'
> 
> But...
> The '-u NONE' starts vim without your .vimrc.
> Where would vim get variables to unset?

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui