diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-01 22:57:49 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-02 20:44:48 -0400 |
commit | 07fbdf4acc3b15ff97acb5c90243c61d938f8541 (patch) | |
tree | f43de17d8d0a663c93a711933115cc72afdc8b06 /runtime | |
parent | 65206714bc0990a469da5efd2edbe52e81903014 (diff) | |
download | rneovim-07fbdf4acc3b15ff97acb5c90243c61d938f8541.tar.gz rneovim-07fbdf4acc3b15ff97acb5c90243c61d938f8541.tar.bz2 rneovim-07fbdf4acc3b15ff97acb5c90243c61d938f8541.zip |
vim-patch:8.0.1832: cannot use :unlet for an environment variable
Problem: Cannot use :unlet for an environment variable.
Solution: Make it work. Use unsetenv() if available.
(Yasuhiro Matsumoto, closes vim/vim#2855)
https://github.com/vim/vim/commit/137374fd6538cf9dee0cb22907728d8fdecb5832
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 064c08c190..2e1d89c524 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -9136,6 +9136,14 @@ This does NOT work: > variables are automatically deleted when the function ends. +:unl[et] ${env-name} ... *:unlet-environment* *:unlet-$* + Remove environment variable {env-name}. + Can mix {name} and ${env-name} in one :unlet command. + No error message is given for a non-existing + variable, also without !. + If the system does not support deleting an environment + variable, it is made emtpy. + :lockv[ar][!] [depth] {name} ... *:lockvar* *:lockv* Lock the internal variable {name}. Locking means that it can no longer be changed (until it is unlocked). |