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.

Tomorrow, and tomorrow, and tomorrow,<br />

Creeps in this petty pace from day to day<br />

To the last syllable of recorded time,<br />

And all our yesterdays have lighted fools<br />

The way to dusty death. Out, out, brief candle!<br />

Life's but a walking shadow, a poor player<br />

That struts and frets his hour upon the stage<br />

And then is heard no more: it is a tale<br />

Told by an idiot, full of sound and fury,<br />

Signifying nothing.<br />

~<br />

~<br />

~<br />

~<br />

~<br />

~<br />

~<br />

~<br />

~<br />

~<br />

~<br />

~<br />

~<br />

"soliloquy4" 10L, 409C<br />

Some things to note here are the following:<br />

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

• The cursor begins on the first letter of the first line.<br />

• Lines on the screen beginning with ~ indicate that the line is empty.<br />

• The line at the very bottom of the screen is the informational display. Initially it displays<br />

the name of the file, how many lines the file contains, and how many characters the file<br />

contains.<br />

In command mode, the keys and key sequences have special meanings. For example, we can<br />

move our cursor around the text using the arrow keys, or the H, J, K, and L keys (old UNIX keyboards<br />

didn’t all have arrow keys). If we are searching for a particular word (for example,<br />

candle), we could use the search function, which is / followed by our search term. /candle followed<br />

by the Return key will move the cursor to the first letter of the first instance of candle that<br />

it finds. If we want to continue to search for the next occurrence of our search term, we can use<br />

an empty /, and then press Return. In this particular case, since there is only one occurrence of<br />

candle, the informational line at the bottom will tell us search hit BOTTOM, continuing at TOP. If<br />

there were more occurrences of our search term, / would continue to search forward in our text<br />

for them. To search backward, replace the / with ?.<br />

NOTE Searching in Vim is case sensitive. Also, in its search, Vim has its own special characters—<br />

for example, the . character is a wildcard, so if you were to search for, say, the period at the<br />

end of a sentence, you would need to escape the . with a \ (backslash). Otherwise, it would<br />

match every character in the document.<br />

To actually enter text, you need to enter insert mode. You can do this by typing i, which will<br />

start inserting at the point where your cursor is. Alternately, typing I will begin inserting text at<br />

the beginning of the line you are on, and o will start you at the beginning of a new line immediately<br />

below the line your cursor is on. In insert mode, you can type as you would normally. To<br />

exit insert mode and return to command mode, press the Esc key.

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

Saved successfully!

Ooh no, something went wrong!