From 6c10c1b14b5fec2c0c3ba2d2bd22d3d23265377e Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 1 Oct 2023 02:42:57 +0200 Subject: Improve vi/m compat in scrolling --- doc/config.md | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) (limited to 'doc/config.md') diff --git a/doc/config.md b/doc/config.md index 996f0c16..1140f8d9 100644 --- a/doc/config.md +++ b/doc/config.md @@ -840,8 +840,45 @@ open the current buffer's contents as HTML. -`pager.centerLine()` -Center screen around the current line. +`pager.lowerPage(n = pager.cursory)` +Move cursor to line n, then scroll up so that the cursor is on the +top line on the screen. (`zt` in vim.) + + + +`pager.lowerPageBegin(n = pager.cursory)` +Move cursor to the first non-blank character of line n, then scroll up +so that the cursor is on the top line on the screen. (`z` in vi.) + + + +`pager.centerLine(n = pager.cursory)` +Center screen around line n. (`zz` in vim.) + + + +`pager.centerLineBegin(n = pager.cursory)` +Center screen around line n, and move the cursor to the line's first +non-blank character. (`z.` in vi.) + + + +`pager.raisePage(n = pager.cursory)` +Move cursor to line n, then scroll down so that the cursor is on the +top line on the screen. (zb in vim.) + + + +`pager.lowerPageBegin(n = pager.cursory)` +Move cursor to the first non-blank character of line n, then scroll up +so that the cursor is on the last line on the screen. (`z^` in vi.) + + + +`pager.nextPageBegin(n = pager.cursory)` +If n was given, move to the screen before the nth line and raise the page. +Otherwise, go to the previous screen's last line and raise the page. (`z+` +in vi.) -- cgit 1.4.1-2-gfad0