Friday, January 29, 2010

Re: Autoindents lists in C comments

On 2010-01-29, Robbo wrote:
> Is it possible to autoindent lists in C comments.
> What's the right way?

It depends on the type of list you want to have within your C
comments. The basic idea is that you need to include the list item
leader in 'comments' and tag it with the 'n' flag to tell vim that
it can be nested. See

:help 30.6

and search for "nest". Also see

:help comments
:help format-comments

I'm afraid I don't have an example handy. You may have to
experiment a bit to get the behavior you want.

Regards,
Gary


--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment