Bill McCarthy wrote:
> Hello Vim Developers,
>
> The help files specifies (see :help modeline):
> -----------------------------------------------------------------------------
> 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
> -----------------------------------------------------------------------------
>
> Yet most of the distributed help files fail to follow this
> format (and are note second form).
>
> Most end with a ':' which does not appear to be permitted
> above.
>
> Others start with 'vim:' without the mandatory white space
> preceding it.
>
> Perhaps the docs should mention that {white} is optional if
> [text] is empty - if that is true. And a trailing ':' is
> permitted.
The option setting can be empty, so you can have multiple ":" in a row
and at the end. I'll add a remark to make this explicit.
> Also, for the second form, the same comment applies to its
> {white}. It should also be mentioned that the mandatory ':'
> is preceded by [white] (optional white space).
The exception that the white space can be omitted is mentioned in the
paragraph further down.
You don't need white space before the ":". It's only needed if the
option setting requires it.
--
hundred-and-one symptoms of being an internet addict:
124. You begin conversations with, "Who is your internet service provider?"
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///