Lines
Long lines in a file may show up on the screen as multiple lines. While most commands work on the lines as defined in the file, a few commands work on lines as they appear on the screen.
|
Command |
Action |
|
0, $ |
First, last position of current line. |
|
^, _ |
First nonblank character of current line. |
|
+, - |
First character of next, previous line. |
|
Return |
First nonblank character of next line. |
|
|
Column |
|
g0, g$ |
First, last position of screen line. (vim) |
|
g^ |
First nonblank character of screen line. (vim) |
|
gm |
Middle of screen line. (vim) |
|
gk, gj |
Move up, down one screen line. (vim) |
|
H |
Top line of screen. |
|
M |
Middle line of screen. |
|
L |
Last line of screen. |
|
|
|
|
|
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access