about summary refs log tree commit diff stats
path: root/doc/config.md
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-10-01 02:42:57 +0200
committerbptato <nincsnevem662@gmail.com>2023-10-01 02:42:57 +0200
commit6c10c1b14b5fec2c0c3ba2d2bd22d3d23265377e (patch)
tree11227039c18a09e31840bb4fd3e436ae70b16226 /doc/config.md
parent03fc72abc4f99b3ee46591d8247a27c642e0b51a (diff)
downloadchawan-6c10c1b14b5fec2c0c3ba2d2bd22d3d23265377e.tar.gz
Improve vi/m compat in scrolling
Diffstat (limited to 'doc/config.md')
-rw-r--r--doc/config.md41
1 files changed, 39 insertions, 2 deletions
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.</td>
 </tr>
 
 <tr>
-<td>`pager.centerLine()`</td>
-<td>Center screen around the current line.</td>
+<td>`pager.lowerPage(n = pager.cursory)`</td>
+<td>Move cursor to line n, then scroll up so that the cursor is on the
+top line on the screen. (`zt` in vim.)</td>
+</tr>
+
+<tr>
+<td>`pager.lowerPageBegin(n = pager.cursory)`</td>
+<td>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<CR>` in vi.)</td>
+</tr>
+
+<tr>
+<td>`pager.centerLine(n = pager.cursory)`</td>
+<td>Center screen around line n. (`zz` in vim.)</td>
+</tr>
+
+<tr>
+<td>`pager.centerLineBegin(n = pager.cursory)`</td>
+<td>Center screen around line n, and move the cursor to the line's first
+non-blank character. (`z.` in vi.)</td>
+</tr>
+
+<tr>
+<td>`pager.raisePage(n = pager.cursory)`</td>
+<td>Move cursor to line n, then scroll down so that the cursor is on the
+top line on the screen. (zb in vim.)</td>
+</tr>
+
+<tr>
+<td>`pager.lowerPageBegin(n = pager.cursory)`</td>
+<td>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.)</td>
+</tr>
+
+<tr>
+<td>`pager.nextPageBegin(n = pager.cursory)`</td>
+<td>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.)</td>
 </tr>
 
 <tr>