Operating System Tutorial
Chapter 4, Writing and editing

Moving around in a file

Moving around in a file

Use the direction keys (arrow keys) to move one line up or down, or one character right or left. You can also use h to move left, l to move right, k to move up, and j to move down.



Moving one word forward (w) or one word back (b)



Moving to a particular line

See Chapter 4, ``Editing files'' in the Operating System User's Guide for some other ways to move around a file in vi.