> Hi,
>
> I am trying to get cindent to successfully indent a "semi-c-style"
> language. It has all the standard constructions and the cindent
> feature works quite well for most cases. But the language uses := as
> assignment operator, and this causes problems with cindent. cindent
> always positions these statements at column 0, i have tried to change
> cinoptions without success. I suppose cindent thinks that these lines
> are labels of some kind.
>
> So my question is: is it possible to disable cindent's recognition of
> labels (the language does not have any anyway).
I think:
set cinoptions+=L0
should do what you want. (It appears to work in an actual C file.)
Found in:
:help C-indenting
by searching for ':' (no quotes), and finding:
LN Controls placement of jump labels. [...]
The default is equivalent to L-1, to place at column 1. (Vim columns
start at 1, not 0)
--
Best,
Ben
--
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
No comments:
Post a Comment