mirror of
https://github.com/iggredible/Learn-Vim
synced 2024-11-14 18:12:49 +00:00
Update ch5_moving_in_file.md
Add relative scrolling with zf, zh and zb
This commit is contained in:
parent
8eba4f310e
commit
d879f45095
@ -225,6 +225,12 @@ Ctrl-y scroll up a line
|
|||||||
Ctrl-u scroll up half screen
|
Ctrl-u scroll up half screen
|
||||||
Ctrl-b scroll up whole screen
|
Ctrl-b scroll up whole screen
|
||||||
```
|
```
|
||||||
|
You can also scroll relatively to the current line:
|
||||||
|
```
|
||||||
|
zt bring the current line near the top of your screen
|
||||||
|
zh bring the current line to the midle (half) of your screen
|
||||||
|
zb bring the current line near the bottom of your screen
|
||||||
|
```
|
||||||
|
|
||||||
# Search navigation
|
# Search navigation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user