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 <dic...@invisible-island.net> https://invisible-island.net ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature