/[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.13 Revision 1.14
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/vi-guide.xml,v 1.13 2005/05/12 01:17:17 yoswink Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/vi-guide.xml,v 1.14 2005/07/21 15:58:38 neysx Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/vi-guide.xml"> 5<guide link="/doc/en/vi-guide.xml">
6<title>Learning vi -- the "cheatsheet" technique</title> 6<title>Learning vi -- the "cheatsheet" technique</title>
7<author title="Author"> 7<author title="Author">
18This guide will teach you how to use vi, using a cheat sheet method to 18This guide will teach you how to use vi, using a cheat sheet method to
19accelerate the learning process. This will be the first guide for vi, 19accelerate the learning process. This will be the first guide for vi,
20catering to beginners. 20catering to beginners.
21</abstract> 21</abstract>
22 22
23<version>1.1.6</version> 23<version>1.1.7</version>
24<date>2005-05-12</date> 24<date>2005-07-21</date>
25 25
26<chapter> 26<chapter>
27<title>Getting Started</title> 27<title>Getting Started</title>
28<section> 28<section>
29<title>Introduction</title> 29<title>Introduction</title>
103enhanced command-line vi, vim also comes with <c>gvim</c>, a nice graphical 103enhanced command-line vi, vim also comes with <c>gvim</c>, a nice graphical
104editor which can be configured to use the excellent GTK+ gui library. 104editor which can be configured to use the excellent GTK+ gui library.
105Here's a gvim screenshot from my system: 105Here's a gvim screenshot from my system:
106</p> 106</p>
107 107
108<figure link="http://www.ibiblio.org/web-gentoo/images/vishot.png" 108<figure link="/images/vishot.png" short="screenshot" caption="VIM screenshot"/>
109short="screenshot" caption="VIM screenshot"/>
110 109
111<p> 110<p>
112If you're a vi newbie, try to get gvim running on your system. Using 111If you're a vi newbie, try to get gvim running on your system. Using
113vi from a gui can make things a bit easier for beginners. 112vi from a gui can make things a bit easier for beginners.
114</p> 113</p>
321sheet!) Here's a picture of my cheat sheet after I've transcribed all 320sheet!) Here's a picture of my cheat sheet after I've transcribed all
322the commands that we've covered so far. Try to follow my layout if 321the commands that we've covered so far. Try to follow my layout if
323possible so that we can fit everything on one sheet. 322possible so that we can fit everything on one sheet.
324</p> 323</p>
325 324
326<figure 325<figure link="/images/vicheat-first.png" short="First part of the cheat sheet"
327link="http://www.ibiblio.org/web-gentoo/images/vicheat-first.png" 326caption="Cheat Sheet"/>
328short="First part of the cheat sheet" caption="Cheat Sheet"/>
329 327
330</body> 328</body>
331</section> 329</section>
332<section> 330<section>
333<title>Miscellaneous vi</title> 331<title>Miscellaneous vi</title>
461<p> 459<p>
462Time to update the cheat sheet! After adding all the commands we've 460Time to update the cheat sheet! After adding all the commands we've
463covered so far, your cheat sheet should look like this: 461covered so far, your cheat sheet should look like this:
464</p> 462</p>
465 463
466<figure 464<figure link="/images/vicheat-edit.png" short="Cheat sheet" caption="Cheat
467link="http://www.ibiblio.org/web-gentoo/images/vicheat-edit.png" 465sheet with editing commands"/>
468short="Cheat sheet" caption="Cheat sheet with editing commands"/>
469 466
470</body> 467</body>
471</section> 468</section>
472</chapter> 469</chapter>
473 470
594<p> 591<p>
595Time to update the cheat sheet again. Here's what it looks like so 592Time to update the cheat sheet again. Here's what it looks like so
596far: 593far:
597</p> 594</p>
598 595
599<figure 596<figure link="/images/vicheat-compound.png" short="Cheat Sheet" caption="Cheat
600link="http://www.ibiblio.org/web-gentoo/images/vicheat-compound.png" 597sheet with compound commands"/>
601short="Cheat Sheet" caption="Cheat sheet with compound commands"/>
602 598
603</body> 599</body>
604</section> 600</section>
605<section> 601<section>
606<title>Productivity features</title> 602<title>Productivity features</title>
633it can be copied or deleted, and then pasted. If you are using gvim, you 629it can be copied or deleted, and then pasted. If you are using gvim, you
634can highlight by simply dragging the left mouse button over a particular 630can highlight by simply dragging the left mouse button over a particular
635region: 631region:
636</p> 632</p>
637 633
638<figure 634<figure link="/images/vihighlight.png" short="Highlighted text" caption="VIM
639link="http://www.ibiblio.org/web-gentoo/images/vihighlight.png" 635with highlighted text"/>
640short="Highlighted text" caption="VIM with highlighted text"/>
641 636
642<p> 637<p>
643In addition, you can also enter visual mode by hitting <c>v</c> (this 638In addition, you can also enter visual mode by hitting <c>v</c> (this
644may be your only option if you are using vi from the console.) Then, 639may be your only option if you are using vi from the console.) Then,
645by moving the cursor using movement commands (typically the arrow 640by moving the cursor using movement commands (typically the arrow
707Well, we've reached the end of the vi tutorial! After adding all the 702Well, we've reached the end of the vi tutorial! After adding all the
708advanced editing commands to your cheat sheet, it should look like 703advanced editing commands to your cheat sheet, it should look like
709this: 704this:
710</p> 705</p>
711 706
712<figure 707<figure link="/images/vicheat-final.png" short="Cheat Sheet" caption="Final
713link="http://www.ibiblio.org/web-gentoo/images/vicheat-final.png" 708cheet sheet"/>
714short="Cheat Sheet" caption="Final cheet sheet"/>
715 709
716<p> 710<p>
717Keep your cheat sheet handy, and begin using vi to edit files and 711Keep your cheat sheet handy, and begin using vi to edit files and
718compose emails. Refer to the cheat sheet when needed; you'll find 712compose emails. Refer to the cheat sheet when needed; you'll find
719that within the week, you'll have nearly all the commands memorized 713that within the week, you'll have nearly all the commands memorized

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20