Lech Lorens wrote:

> Most of the Vim code is indented in the following way:
> #v+
> {
>     if (condition1
>             && condition2)
>       action();
> 
>     doit(arg1,
>          arg2,
>        arg3);
> }
> #v-
> 
> However, this has to be adjusted manually, because as close as Vim can 
> get automatically is with the setting cino=(0 (which can sometimes get 
> difficult to spot where the actual action for if is):
> 
> #v+
> {
>     if (condition1
>         && condition2)
>       action();
> 
>     doit(arg1,
>          arg2,
>        arg3);
> }
> #v-
> 
> The attached patch makes Vim indent code as in the first example if you 
> specify cino=(0,k2s
> This kind of indenting is applied to continuation lines for if(), for() 
> and while().

I wonder if something similar can be done with another 'cino' flag.
There are so many related flags already, it's confusing the user.
At least needs an explanation how the "k" flag interacts with the
others, such as "u" and "w".


-- 
Some of the well know MS-Windows errors:
        ETIME           Wrong time, wait a little while
        ECRASH          Try again...
        EDETECT         Unable to detect errors
        EOVER           You lost!  Play another game?
        ENOCLUE         Eh, what did you want?

 /// 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

Raspunde prin e-mail lui