On Apr 17, 1:12 pm, fritzophrenic <[EMAIL PROTECTED]> wrote:
> See the vim_use
> thread:http://groups.google.com/group/vim_use/browse_thread/thread/863a0ce08...
>
> 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).
Any comments on this? I'm pretty sure it is a bug, but if it isn't,
I'd certainly like to know why!
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---