-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option values with a : aren't handled propely #9
Comments
This is one of those things where I'm inclined to say "we just shouldn't support it". I'd rather have the code be simple and obviously correct than able to support every oddity that Vim accepts. Is this really something useful enough that it's worth adding complexity? |
For my particular usage, there's a workaround-- Most of those would likely be better served by an ftplugin, but in one-off cases like what I ran into it's easier to just add the modeline. Although, of those options, iskeyword seems to me like the one that would most often fall into this one-off situation, so I'd be fine with the support not being added. |
fwiw, you can fix this locally by adding the characters to the character class near the end of this regex.
|
Currently, securemodelines parses
:
as a delimiter (either for the end of the modeline or for the end of an option) and doesn't handle a:
being used as part of the option's value. Vim also handles the escaping of:
in a modeline different than escaping in a normal set command.vim:set isk+=\::
andvim:set isk+=\\::
both do the same thing, when the former is what's documented to work and the latter is what one would expect when escaping something in a normal set command.The text was updated successfully, but these errors were encountered: