/[gentoo]/xml/htdocs/doc/en/vi-guide.xml
Gentoo

Diff of /xml/htdocs/doc/en/vi-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
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>
269more complex editing commands automatically put you into insert mode -- a mode that allows 269more complex editing commands automatically put you into insert mode -- a mode that allows
270you to enter literal data from the keyboard. We'll cover those in a bit.</p> 270you 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>
272will delete the current character under the cursor. Now, move to the middle of the paragraph 272will delete the current character under the cursor. Now, move to the middle of the paragraph
273somewhere in your text file, and hit <c>J</c> (capitalized). You'll see that the <c>J</c> command tells 273somewhere in your text file, and hit <c>J</c> (capitalized). You'll see that the <c>J</c> command tells
274vi to join the previous line to the end of the current line. Now, move over a character and hit 274vi 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.
276Finally, move to any line in the file and 276Finally, move to any line in the file and
277type <c>dd</c>. You'll see that <c>dd</c> deletes the current line of text.</p> 277type <c>dd</c>. You'll see that <c>dd</c> deletes the current line of text.</p>
278 278
279</body> 279</body>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20