[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] visual-matches

From: Wayne Cuddy
Subject: Re: [vile] visual-matches
Date: Tue, 15 Oct 2013 13:12:21 -0400
User-agent: Mutt/

Understood. However for this command 'g/pattern/d', vile takes an
incredibly long time with visual-matches enabled. If I set it to none,
but leave syntax highlighting enabled (which I think I may have set to
.5 or .75 seconds) it's a huge improvement.

What I'm asking is each time a line is removed, using the above
command, does vile rescan the entire for for visual matches? Or does
it do this after removing all the lines?

So what I end up doing is disabling visual matches, using the global
command to remove lines, and then re-enable visual-matches.

If I use a command such as '%s' to replace some text it's much faster
than the global command which removes lines.

None of this is really an issue, just curious behavior.


On Fri, Oct 11, 2013 at 05:41:40PM -0400, Thomas Dickey wrote:
> On Fri, Oct 11, 2013 at 04:50:09PM -0400, Wayne Cuddy wrote:
> > I have a file that is only about 30k lines. The command 'g/pattern/d'
> > takes a very long time when visual-matches is enabled and is almost
> > instant when set to 'none'. I'm curious to what would cause this? Is the
> > match highlighter being executed after each line is remove when visual
> > matching is enabled? Is there a way to have the g/v and other commands
> yes - it is inefficient.  Essentially
>       a) when the search command is issued, vile scans the whole file,
>          computing the highlighting as a linked list
>          (think of it as a transparent overlay).
>       b) as it displays a page, vile looks in the list for chunks that
>          fall on the page.
>       c) doing an edit or other change that requires repainting the screen
>          adds the overlay as in (c)
> The same issue exists with syntax highlighting, though solving this one
> seems less complicated.  (On the other hand, syntax highlighting
> can be turned with the autocolor setting - that doesn't apply to
> visual matches). 
> > that modify text save, disable and re-enable visual matches so
> > that I don't have to remember to do it?
> > 
> > Thanks,
> > Wayne
> > 
> > _______________________________________________
> > vile mailing list
> > address@hidden
> >
> -- 
> Thomas E. Dickey <address@hidden>

> _______________________________________________
> vile mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]