The "m: " portion of 'comments' makes Vim treat any line with leading
whitespace as a comment (at least in any situation where
misc1.c:get_leader_len returning non-zero is used as an indication of
being a comment).
So, I'm guessing that most (if not all) of the lines which you are
expecting to show up with :ilist but are only showing up with :ilist!
are ones that have leading whitespace.
> Could anyone else confirm this is a bug or is there something weird in
> my setup?
This sounds like something that could be improved in Vim.
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jame...@jamessan.com>
I had noticed something like that, too. Since Vim 7.2, the ftplugin/html.vim
(and dtd.vim, xml.vim) define
setlocal comments=s:<!--,m:\ \ \ \ ,e:-->
Because of that, my HTML files were line-breaking _everywhere_ when inserting
text. (After column 80; I'm indenting with <Tab>, and have :set tw=80 fo=cq.)
I reported that issue to the author of the ftplugins, Dan Sharp (again added to
this mail), but have never received an answer, so I modified the offending
setting in after/ftplugin and mostly forgot about it.
I agree with James's analysis that the "middle" part causes problems, because it
can also stand for a normal indented line, and thus matches in many lines that
are NOT part of a multi-line comment. Furthermore, I found out that Vim does not
strictly match 4 spaces, but also accepts a <Tab> for a match. Vim's
capabilities seem to be too limited for HTML/XML comments. (Using syntax
highlighting definitions for formatting a la ':setl comments=syntax:htmlComment'
might be a great feature to have.)
-- regards, ingo