05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Keystroke Action<br />

Moving Around (continued)<br />

G Move to last line in document<br />

1G Move to first line in document<br />

Ctrl+f Scroll forward one screen<br />

Ctrl+b Scroll backward one screen<br />

Inserting Text<br />

i Insert text before cursor<br />

a Insert text after cursor<br />

I Insert text at beginning of line<br />

A Insert text at end of line<br />

o Create blank line below cursor and insert text<br />

O Create blank line above cursor and insert text<br />

r Overwrite one character and then return to command mode<br />

R Begin overwriting text at cursor<br />

Deleting Text<br />

x Delete character under cursor<br />

X Delete character before cursor<br />

dd or :d Delete entire line<br />

Searching and Replacing Text<br />

/pattern Search forward for pattern<br />

/ or n Search forward for previous pattern<br />

?pattern Search backward for pattern<br />

? or N Search backward for previous pattern<br />

:s/orig/repl Replace orig with repl on current line<br />

:%s/orig/repl Replace orig with repl throughout entire document<br />

Copying and Pasting Text<br />

yw Copy word<br />

yy Copy line<br />

y Copy selected text (from visual mode)<br />

dw Cut word<br />

dd Cut line<br />

d Cut selected text (from visual mode)<br />

p Paste text<br />

CHAPTER 18 INTRODUCING DARWIN AND THE SHELL 315<br />

Continued

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

Saved successfully!

Ooh no, something went wrong!