vile
[Top][All Lists]
Advanced

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

Re: scrolling/paging question


From: Thomas Dickey
Subject: Re: scrolling/paging question
Date: Tue, 2 Mar 2021 19:00:04 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

On Tue, Mar 02, 2021 at 04:28:33PM +0000, Wayne wrote:
> I'm working with some wide files in vile. 600+ characters-per-line
> with nolinewrap enabled.
> 
> If the cursor is positioned several hundred characters into a line I can
> use the j/k keys to scroll through the lines without the screen
> shifting. However if I use page-up/page-down/ctrl-f/ctrl-b/ctrl-u/ctrl-d
> the cursor is re-positioned back to the beginning of the line.

yes... vi does that
 
> I can use move-window-down/move-window-up with a count but it still
> seems in some cases, which I don't quite fully understand yet, the
> cursor is positioned back at the start of the line.

That's done in getgoal -- offhand, I think the cursor lands on
a short/empty line, which overrides the initial goal.
 
> Is there a convenient way to page through wide files without the
> cursor changing columns?

A macro could do this, e.g., binding ^F/^B to macros that do the
scrolling and end with goto-column with your preferred column-offset.

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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