>> Is it possible to clear an environment variable via vim script?  I've tried:
>>
>> let $MvVar =
>>
>> but vim complains.  I've also tried:
>>
>> unlet $MyVar
>>
>> with no success.
>
> did you define MyVar with a dollar sign?  or are you suffering from
> iknowtoomanylanguagesitus?

It's an environmental variable that exists outside of Vim.  What I
would like to do is clear it temporarily, call and external program,
and restore it after calling the external program.  Something like:

let save_MyVar = $MyVar
unlet $MyVar
exe '!someprog'
let $MyVar = save_MyVar

would be ideal, but the 'unlet' is the problem.

Anyone have any ideas?

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to