| … | |
… | |
| 4 | <title>Learning vi -- the "cheatsheet" technique</title> |
4 | <title>Learning vi -- the "cheatsheet" technique</title> |
| 5 | <author title="Author"><mail link="drobbins@gentoo.org">Daniel Robbins</mail></author> |
5 | <author title="Author"><mail link="drobbins@gentoo.org">Daniel Robbins</mail></author> |
| 6 | <author title="Author"><mail link="stocke2@gentoo.org">Eric Stockbridge</mail></author> |
6 | <author title="Author"><mail link="stocke2@gentoo.org">Eric Stockbridge</mail></author> |
| 7 | <abstract>This guide will teach you how to use vi, using a cheat sheet method to accelerate the learning process. This will be the first guide for vi, catering to beginners.</abstract> |
7 | <abstract>This guide will teach you how to use vi, using a cheat sheet method to accelerate the learning process. This will be the first guide for vi, catering to beginners.</abstract> |
| 8 | <version>1.1</version> |
8 | <version>1.1</version> |
| 9 | <date>19 Sep 2002</date> |
9 | <date>15 Nov 2002</date> |
| 10 | |
10 | |
| 11 | <chapter> |
11 | <chapter> |
| 12 | <title>Getting Started</title> |
12 | <title>Getting Started</title> |
| 13 | <section> |
13 | <section> |
| 14 | <title>Introduction</title> |
14 | <title>Introduction</title> |
| … | |
… | |
| 269 | more complex editing commands automatically put you into insert mode -- a mode that allows |
269 | more complex editing commands automatically put you into insert mode -- a mode that allows |
| 270 | you to enter literal data from the keyboard. We'll cover those in a bit.</p> |
270 | you to enter literal data from the keyboard. We'll cover those in a bit.</p> |
| 271 | <p>For now, try moving over some characters and hitting <c>x</c> repeatedly. You'll see that <c>x</c> |
271 | <p>For now, try moving over some characters and hitting <c>x</c> repeatedly. You'll see that <c>x</c> |
| 272 | will delete the current character under the cursor. Now, move to the middle of the paragraph |
272 | will delete the current character under the cursor. Now, move to the middle of the paragraph |
| 273 | somewhere in your text file, and hit <c>J</c> (capitalized). You'll see that the <c>J</c> command tells |
273 | somewhere in your text file, and hit <c>J</c> (capitalized). You'll see that the <c>J</c> command tells |
| 274 | vi to join the previous line to the end of the current line. Now, move over a character and hit |
274 | vi to join the next line to the end of the current line. Now, move over a character and hit |
| 275 | <c>r</c>, and then type in a new character; you'll see that the original character has been replaced. |
275 | <c>r</c>, and then type in a new character; you'll see that the original character has been replaced. |
| 276 | Finally, move to any line in the file and |
276 | Finally, move to any line in the file and |
| 277 | type <c>dd</c>. You'll see that <c>dd</c> deletes the current line of text.</p> |
277 | type <c>dd</c>. You'll see that <c>dd</c> deletes the current line of text.</p> |
| 278 | |
278 | |
| 279 | </body> |
279 | </body> |