/[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.3 Revision 1.4
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>15 Nov 2002</date> 9<date>21 Apr 2003</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>
286another handy shortcut. 286another handy shortcut.
287</p> 287</p>
288<p>To delete text, you can also use the <c>d</c> command combined with any movement command. For example, 288<p>To delete text, you can also use the <c>d</c> command combined with any movement command. For example,
289 <c>dw</c> will delete from the current position to the beginning of the next word; <c>d)</c> will delete up until the 289 <c>dw</c> will delete from the current position to the beginning of the next word; <c>d)</c> will delete up until the
290 end of the next sentence, and <c>d}</c> will delete the remainder of the paragraph. Experiment with the 290 end of the next sentence, and <c>d}</c> will delete the remainder of the paragraph. Experiment with the
291 <c>d</c> command and the otehr editing commands until you're comfortable with them.</p> 291 <c>d</c> command and the other editing commands until you're comfortable with them.</p>
292</body> 292</body>
293</section> 293</section>
294<section> 294<section>
295<title>Undo!</title> 295<title>Undo!</title>
296<body> 296<body>
428<section> 428<section>
429<title></title> 429<title></title>
430<body> 430<body>
431 431
432 <p>In addition, you can also enter visual mode by hitting <c>v</c> (this may be your 432 <p>In addition, you can also enter visual mode by hitting <c>v</c> (this may be your
433only option if you are using vi from the console.) Then, by movng the cursor 433only option if you are using vi from the console.) Then, by moving the cursor
434using movement commands (typically the arrow keys), you'll be able to highlight 434using movement commands (typically the arrow keys), you'll be able to highlight
435a region of text. Once highlighted, we are ready to cut or copy the text. 435a region of text. Once highlighted, we are ready to cut or copy the text.
436</p> 436</p>
437 437
438<p>If you're copying the text, hit <c>y</c> (which stands for "yank"). If you're cutting 438<p>If you're copying the text, hit <c>y</c> (which stands for "yank"). If you're cutting

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

  ViewVC Help
Powered by ViewVC 1.1.20