See the vim_use thread:
http://groups.google.com/group/vim_use/browse_thread/thread/863a0ce0874f80c6/d4bbb543436a7d1d?lnk=gst&q=indenting+lists+in+comments#d4bbb543436a7d1d

It seems that a nested first line only comment will incorrectly
prepend the comment leader on the next line if it occurs in the middle
of a multiline comment or in a single-line comment.

For example, in a new buffer:

:set tw=20 comments=ns1:/*,nmb:*,nex:*/,nfb:NOTES: fo=tcqr cindent

Type:

/* NOTES: mary had a little lamb */

The comments wrap exactly as expected, i.e.

/* NOTES: mary had a
 *        little
 *        lamb */

Now type:

/*<CR>NOTES: Mary had a little lamb */

This gives:

/*
 * NOTES: Mary had a
 * NOTES: little
 * NOTES: lamb */

The same thing happens if you go into a pre-existing multiline comment
and start typing. If the first-line-only comment is inserted on the
first line of the multiline comment, it is fine. Otherwise, it fails.

In addition:

:set comments+=n://

Type:

 // NOTES: mary had a little lamb

to get:

// NOTES: Mary had a
// NOTES: little
// NOTES: lamb


I'm using gvim 7.1.293, 'Big' compile on MS Windows (I got it off the
'cream' sourceforge page).
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui