begin  quoting Ralph Shumaker as of Sun, Nov 13, 2005 at 12:39:02PM -0800:
[snip]
> I wish I could take man, mozilla, and many others, and make them default 
> to paging down a little more like the way vi does it.  When vi hits the 
> bottom, you know it because of all the blank lines at the bottom which 
> each begin with ~ .

....so... use "view" for your pager.

That's why there's a PAGER environment variable, y'know.

> What I do not like about the way vi does a page down is that the two 
> lines it moves from the bottom of the screen to the top are two full 
> lines as delineated by line feed characters.  As the person who is 

That's configurable, IIRC.

> reading what is displayed, I don't care about where the line breaks are 
> and cannot tell by looking.  By default, vi does not show the line break 
> characters, nor do I want it to.  I would like to be able to get into 
> the habit of hitting [Page Down] and picking up my reading in the 
> normal-person-predictable place. 

That, too.

>                                   I would like to make vi, at the bottom 
> of a screen when it has a "line" too long to fit in the remaining screen 
> lines, to go ahead and display as many screen lines of it as it can and 
> make the last one "@..." to indicate that it has already displayed as 
> much as it can and that the rest won't fit.

I'd rather not deal with files that have overly long lines. I typically
prefer to truncate, although I always forget to configure my .exrc for
this.

>                                              "@" would still be used in 
> the case where none of the "line" is displayed.  And I would also like 
> to make vi, when hitting [Page Down], to just carry the last two 
> *screen* lines to the top (and for clarification, this does not include 
> "@..." nor "@").

Pipe the stream through fmt to reformat it appropriately so that no line
is long enough to wrap, perhaps?

>                   I sometimes wish I knew C enough to hack such changes 
> (though such changes probably would have few who would appreciate 
> them).  But as it is, I can just barely feel my way blindly through vi 
> as a user.  Who knows, vi is so powerful it probably has the ability 
> already and just needs the default to be set that way.

With vim, you can learn a lot by typing :help . . .

-Stewart "Barely approaching power-user stage in vi, much less vim" Stremler


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to