26.10.2012 Views

SUSE LINUX Documentation - Index of

SUSE LINUX Documentation - Index of

SUSE LINUX Documentation - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

H<br />

J<br />

K<br />

L<br />

Move one character to the left<br />

Move one line down<br />

Move one line up<br />

Move one character to the right<br />

The commands in command mode allow diverse variations. To execute a command<br />

several times, simply enter the number <strong>of</strong> repetitions before entering the actual command.<br />

For example, enter 5 L to move the cursor five characters to the right.<br />

A selection <strong>of</strong> important commands is shown in Table 3.1, “Simple Commands <strong>of</strong> the<br />

vi Editor” (page 119) This list is far from complete. More complete lists are available<br />

in the documentation found in Section 3.4.3, “For More Information” (page 120)<br />

Table 3.1 Simple Commands <strong>of</strong> the vi Editor<br />

Esc<br />

I<br />

A<br />

Shift + A<br />

Shift + R<br />

R<br />

O<br />

Change to command mode<br />

Change to insert mode (characters appear at the current cursor<br />

position)<br />

Change to insert mode (characters are inserted after the current<br />

cursor position)<br />

Change to insert mode (characters are added at the end <strong>of</strong> the<br />

line)<br />

Change to replace mode (overwrite the old text)<br />

Replace the character under the cursor<br />

Change to insert mode (a new line is inserted after the current<br />

one)<br />

Working with the Shell 119

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!