Am 26.09.2016 um 00:10 schrieb Luc Hermitte (Vim Github Repository):
When an environment variable isn't set, `exists()` return false. We can assign
a value to the variable with `:let`, after which point it exists. But we can't
revert to an non-existent state (related to `unsetenv (3C)`)
```vim
call assert_false(exists('$FOOBAR'))
let $FOOBAR = 1
call assert_true(exists('$FOOBAR'))
unlet $FOOBAR
call assert_false(exists('$FOOBAR'))
```
At least on Windows, assigning the empty string "unlets" it.
--
Andy
--
--
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/d/optout.