Gary Johnson wrote:
> ":help modeline" says:
>
> There are two forms of modelines. The first form:
> [text]{white}{vi:|vim:|ex:}[white]{options}
>
> [text] any text or empty
> {white} at least one blank character (<Space> or <Tab>)
> {vi:|vim:|ex:} the string "vi:", "vim:" or "ex:"
> [white] optional white space
> {options} a list of option settings, separated with white
> space
> or ':', where each part between ':' is the
> argument
> for a ":set" command (can be empty)
>
> Note that the initial white space is not optional. However, that
> initial white space is not actually required. For example, create
> a file containing only the line
>
> vim: tw=40
>
> left justified, open it with
>
> $ vim -N -u NONE demo
>
> and execute:
>
> :verbose set tw?
> textwidth=40
> Last set from modeline line 1
>
> I don't particularly care whether the documentation or the behavior
> is changed, but one should be to match the other.
>
> I tested this using 8.1.2397.
I think it should be:
There are two forms of modelines. The first form:
[text{white}]{vi:|vim:|ex:}[white]{options}
[text{white}] empty or any text followed by at least one blank
character (<Space> or <Tab>); "ex:" always requires at
least one blank character
The exception further down is hard to spot.
--
hundred-and-one symptoms of being an internet addict:
199. You read this entire list of symptoms, looking for something
that doesn't describe you.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201912061428.xB6ES9V9004130%40masaka.moolenaar.net.