On Wed, Jun 17, 2009 at 02:52:52AM -0700, Todd A. Jacobs wrote:

> The following doesn't seem to do what I expect:
>       # vim: tw=72 ts=8 sts=8 ai nojoinspaces noet

The modeline was missing the optional colon at the end of the line.
While the noet option still doesn't seem to work as expected, the rest
of the modeline works when set to:

    # vim: tw=72 ts=8 sts=8 ai nojoinspaces noet:

It is worth noting that cream is obviously not accepting both forms of
the standard vim modelines. Specifically, from the vim manual:

    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

    Example:
       vi:noai:sw=3 ts=6

So, the original modeline *should* have worked, but didn't because while vim
thinks the trailing colon should be optional, cream seems to think it's
required.

This should probably either be documented or fixed, as appropriate.

-- 
"Oh, look: rocks!"
        -- Doctor Who, "Destiny of the Daleks"


------------------------------------------------------------------------------
_______________________________________________
cream-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cream-general

Reply via email to