next up previous contents index
Next: Inserting Text Up: Basic vi Keystrokes Previous: Basic vi Keystrokes

Moving around

 
 		 Move  forward one character ( right). Also the
                    l key.

Move backward one character ( left). Also the h key.

Move to previous line ( up). Also the k key.

Move to next line ( down). Also the j key.

w Move one word forward.

b Move one word backward.

0 Move to beginning of line.

<Return> or + Move to beginning of next line.

- Move to beginning of previous line.

$ Move to end of line.

<Ctrl-f> Move forward one screen.

<Ctrl-b> Move backward one screen.

G Move to end of buffer.

:1 Move to beginning of buffer.

:n Move to line number n.

<Ctrl-g> Display current line number.

<Ctrl-l> Redraw screen.

/pattern Search forward for pattern.

?pattern Search backwards for pattern.

n Repeat last search in same direction.

N Repeat last search in opposite direction.

If you precede the move commands by a number, the command is repeated that number of times. Thus 5w will move forwards 5 words.



Alan Silverman
Wed Apr 12 16:54:02 METDST 1995