[Top][All Lists]

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

Re: Very bad/slow redraw with vertical split.

From: Tom Scogland
Subject: Re: Very bad/slow redraw with vertical split.
Date: Fri, 24 Oct 2008 15:26:14 -0400

Actually I use vim for that these days.  I have an alias that starts vim and runs ":Man <arguments>"  whenever I run man.  That means it works nice and fast, and I get nicely highlighted man pages.  As to a less stupid dedicated pager, there's always most, which also does syntax highlighting though the key commands don't quite work for me.  It might do the redraw a little better, but I'm not sure.

On Fri, Oct 24, 2008 at 2:34 PM, Robin Lee Powell <address@hidden> wrote:
On Fri, Oct 24, 2008 at 02:26:30PM +0100, Thomas Adam wrote:
> Hello --
> 2008/10/24 Robin Lee Powell <address@hidden>:
> >
> > I'm playing around with vertical split.  I'm using Screen
> > version 4.00.03jw4 (FAU) 2-May-06 on Debian.
> >
> > When I have vertical split on, less is slow.  *Really* slow.  So
> > is more.  vim is OK.  When I say "slow", I mean that when I say
> > "less file", it takes ~20 seconds for it to put the first
> > screenful of data up.
> >
> > Any idea what's up?
> It's a known caveat of vertical splits in screen.  Screen has to
> continually redraw the region and so that slows things down.

I had a giant post written about how vertical splits in emacs and
vim are quite fast, and how running vim under a vertical split in
screen is also snappy, as opposed to running less, so there *must*
be a problem somewhere...

And then I realized that when you page down in vim, it redraws its
display area once.  When you page down in less, it redraws line by


Holding down j in vim to make it redraw line by line makes
everything just as slow as less.


Can anyone reccomend a less (ha!) stupid pager?  more does the same
thing, and I can't view man pages like this.

less -c mostly does the trick...  Except that the initial screen
clear to put the cursor at the top line is done the slow way, and
hence takes ~30 seconds.  "clear ; less -c [file]" works, but I'd
love a better suggestion.


They say:  "The first AIs will be built by the military as weapons."
And I'm thinking:  "Does it even occur to you to try for something
other than the default outcome?" -- ***


AKA:Tom Scogland
I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world.
-Albert Einstein

reply via email to

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