On Sa, 20 Mai 2017, Ronald Höllwarth wrote:

> Hello,
> 
> I'm using vim 8.513 with +linebreak and have the following problem:
> 
> I want to set a modeline that does the following:
> 
> wrap long lines (set wrap) and break them at whitespace etc. (set linebreak). 
> Indent the broken lines as far as the start of the line (set breakindent) and 
> add 4 whitespace more (set breakindentopt=shift:4)
> 
> i tried the modeline
> 
> /* vim: set wrap linebreak breakindent breakindentopt=shift:4 : */
> 
> But I get the Error (re-translated from german:)
> 
> Error executing "modelines"
> E474: invalid argument: breakindentopt=shift
> 
> If I enter the set command directly with
> 
> :set briopt=shift:4
> 
> all is fine and the indention is done as expected.
> 
> Am I doing something wrong in the modeline or did I just discover a bug?

I think you need to escape the ':' as this is used for the modeline.


Best,
Christian
-- 
Es ist besser, ein einziges kleines Licht anzuzünden, als die
Dunkelheit zu verfluchen.
                -- Konfuzius (551-479 v. Chr.)

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to