On Mon, Nov 01, 2010 at 04:24:02PM -0700, Anand Hariharan wrote:
> Take any XML file that has no comments whatsoever.  Now do
> 
> :ilist /RE/
> 
> where you know for certain that the RE exists.  For me, I always get a
> E389.  However, when I do
> 
> :ilist! /RE/
> 
> it works fine.  I have not made any file type specific changes and I
> do not think it is version specific.  If needed, I can send the same
> as a follow-up (am running 7.2 in Windows, FWIW).  'comments' is set
> to the default viz.,
> 
> comments=s:<!--,m:     ,e:-->

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 <[email protected]>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui