On 2014-11-16, Mark Volkmann wrote:
> I want to set cinoptions so the following JavaScript function gets the
> indentation shown.
>
> function foo(a, b,
> c, d) {
> return (a + b) / (c + d);
> }
>
> Setting cinoptions to (1s gets me close, but the last two lines get indented by
> one extra shiftwidth. I want the indentation of lines 3 and 4 to be based on
> the beginning of the function on line 1, not the opening brace on line 2. Is
> this possible?
When I
:set cinoptions=(1s
I get your desired result. Do you have some other 'cinoptions'
value(s) set as well?
Regards,
Gary
--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sunday, November 16, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment