Best way to select a screen of lines at a time?

C-f and PageDown move the cursor down a page. However there seems to be no equivalent to select many lines at a time. Shift-PageDown does not work and Shift-C-f cannot work because this sends the same byte sequence as C-f on a terminal.

The best I’ve been able to come up with is to use a numeric argument to a command like J, so:

map global normal <c-x> 20J
map global normal <c-x> "Z,""aZ<c-f>""a<a-z>u<a-z>a"

Thanks it would take me some time to work out how that works. It works. I see it is doing something with registers and the <a-z> command which can be used to combine selections.

1 Like

Actually it can be simplified as:

map global normal <c-x> "Z<c-f><a-z>u"

but I’m not sure it will always work.