next up previous contents
Next: ``^ f" Forward One Up: ``vi" Visual Editor - Previous: ``vi" visual Editor -   Contents

Moving the Cursor

To move around in the file, use the arrow keys: the up arrow will move the cursor up one line, the down arrow down one line. The right arrow will cause the cursor to move one position to the right. From the end of a line, it will go to the beginning of the next line.

The left arrow will move the cursor one position to the left. If the cursor was at the beginning of a line, it will not move (the same as the up arrow when the cursor is already at the beginning of the file, and the down arrow when the cursor is already at the bottom of the file).

If number is typed immediately before pressing the arrow key, the position of the cursor will move number positions in the direction of the arrow. If number was too large, a beep will be heard, and nothing will happen.

For terminals with no functional arrow keys, four keys will move the cursor around:

h
left arrow ($\Leftarrow$).
j
down arrow ($\Downarrow$).
k
up arrow ($\Uparrow$).
l
right arrow ($\Rightarrow$).


next up previous contents
Next: ``^ f" Forward One Up: ``vi" Visual Editor - Previous: ``vi" visual Editor -   Contents
Claude Cantin 2010-10-24