Use setenv in vim to allow non alphanumeric vars#901
Merged
zimbatm merged 1 commit intodirenv:masterfrom Apr 14, 2022
Merged
Conversation
ref: `:h setenv()` https://vimhelp.org/builtin.txt.html#setenv%28%29 Of note, the `:h expr-env` documentation says > The functions getenv() and setenv() can also be used and work for > environment variables with non-alphanumeric names. > The function environ() can be used to get a Dict with all environment > variables.
Merged
Member
|
Nice. Is this backwards-compatible with older versions of vim? |
Contributor
Author
|
It took a bit of digging to find the exact commit, but it appears this is dated back to patch Those appear to correspond to the vims shipped by default in Ubuntu 20.04 LTS (and later), and Debian 11 (having just missed the Debian 10 cutoff). If that's ancient enough, this'll work, if it's not we might need to revisit how we're doing this. Perhaps by exposing a different command that uses |
Member
|
yeah, that's good enough, thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ref:
:h setenv()https://vimhelp.org/builtin.txt.html#setenv%28%29Of note, the
:h expr-envdocumentation says