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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download) (as text)
Sun Nov 17 01:13:19 2002 UTC (11 years, 8 months ago) by stocke2
Branch: MAIN
Changes since 1.2: +2 -2 lines
File MIME type: application/xml
fixed section on the J command

1 <?xml version="1.0"?>
2 <?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?>
3 <guide link = "/doc/en/vi-guide.xml">
4 <title>Learning vi -- the "cheatsheet" technique</title>
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>
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>
9 <date>15 Nov 2002</date>
10
11 <chapter>
12 <title>Getting Started</title>
13 <section>
14 <title>Introduction</title>
15 <body>
16 <p>
17 This tutorial will show you how to use vi, a powerful visual editor. Using a
18 special accelerated "cheat sheet" method, this tutorial is designed to make you
19 a proficient vi user without requiring a huge time commitment. In this vi
20 tutorial, you'll learn how to move around, edit text, use insert mode, copy and
21 paste text, and use important vim extensions like visual mode and multi-window
22 editing.
23
24 </p><p>
25 If you either don't know or aren't comfortable using vi, then you owe it to yourself
26 to take this tutorial and get up to speed with one of the most popular and powerful
27 Linux/UNIX visual editing programs. </p>
28
29 </body>
30 </section>
31 <section>
32 <title>About the guide</title>
33 <title>Learning vi -- accelerated</title>
34 <body>
35 <p>
36 There's one thing in particular that makes it difficult to learn vi -- vi has lots of commands.
37 In order to use vi effectively, you need to memorize quite a few. This can take a long time, and
38 one of the goals of this tutorial is not to take up a lot of your time. So, initially, we have
39 a challenge -- how exactly do I help you to memorize lots of commands in a short period of time?
40 </p>
41 <p>
42 To tackle this challenge, as we proceed through this tutorial, we're going to gradually put together
43 a vi "cheat sheet". This sheet will contain all the important vi commands. After you've completed
44 this tutorial, you'll be able to refer to this cheat sheet if you forget a particular command.
45 Over time, as you memorize commands, you'll gradually become less and less dependent on the cheat sheet.
46 By using the cheat-sheet technique, you'll be able to learn how to use vi faster than ever possible
47 before!
48 </p>
49 </body>
50 </section>
51 <section>
52 <title>The learning process</title>
53 <body>
54
55 <p>In this guide, I'm going to use several techniques to help you learn.
56 First, I'm going to describe how a particular command works, as you'd expect. Then, I'm going
57 to ask you to try to use the command in vi (for practice), and then I'm going to ask you to transcribe
58 the command to the cheat sheet (for later reference.) If you want to learn vi quickly, it's important
59 that you perform all these steps. Trying out a command in vi and transcribing
60 the command onto your cheat sheet will help you to memorize the command.
61 </p>
62 </body>
63 </section>
64 <section>
65 <title>Introducing vim</title>
66 <body>
67
68 <p>There are many versions of vi, and I'm going to be showing you how to use a
69 version of vi called "vim". vim is very popular and has a number of extensions
70 that make vi a lot nicer (whenever I demonstrate a vim-specific command, I'll
71 make a note of it.) If you need to install vim, you can get it from <uri href="http://www.vim.org">http://www.vim.org</uri>.
72 In addition to an enhanced
73 command-line vi, vim also comes with gvim, a nice graphical editor which can be
74 configured to use the excellent GTK+ gui library. Here's a gvim screenshot
75 from my system:</p>
76
77 <figure link="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/vishot.png" short="screenshot" caption="VIM screenshot"/>
78
79 <p>If you're a vi newbie, try to get gvim running on your system. Using vi
80 from a gui can make things a bit easier for beginners.</p>
81
82 </body>
83 </section>
84 </chapter>
85 <chapter>
86 <title>First Steps</title>
87 <section>
88 <title>Pick a file</title>
89 <body>
90 <p>Before using vi to edit files, you need to know how to use vi to move around in
91 a file. vi has a lot of movement commands, and we're going to take a look at many
92 of them. For this part of the tutorial, find an unimportant text file and load it into
93 vi by typing:</p>
94 <pre>
95 $ vi myfile.txt
96 </pre><p>
97 If you have vim installed, type "vim myfile.txt". If you'd prefer to use gvim, type
98 "gvim myfile.txt". myfile.txt should be the name of a text file on your system.
99 </p>
100 </body>
101 </section>
102
103 <section>
104 <title>Inside vi</title>
105 <body>
106
107 <p>After vi loads, you should see a part of the text file you loaded on your screen.
108 Congratulations -- you're in vi! Unlike many editors, when vi starts up, it is in
109 a special mode called "command mode". This means that if you press "l" on the keyboard,
110 instead of inserting an "l" into the file at the current cursor position, the cursor
111 will move one character to the right instead. In command mode, the
112 characters on your keyboard are used to send commands to vi rather than insert literal
113 characters into the text. One of the most essential types of commands are movement commands;
114 let's take a look at some.</p>
115
116 </body>
117 </section>
118 </chapter>
119 <chapter>
120 <title>Moving around</title>
121 <section>
122 <title>Moving in vi, part 1</title>
123 <body>
124
125 <p>When in command mode, you can use the <c>h</c>,<c>j</c>,<c>k</c> and <c>l</c> keys to move the cursor left,
126 down, up and right respectively. If you're using a modern version of vi, you can also
127 use the arrow keys for this purpose. The <c>h</c>,<c>j</c>,<c>k</c> and <c>l</c> keys are handy because once
128 you're comfortable with them, you'll be able to move around in the file without moving
129 your fingers from the home keyboard row. Try using <c>h</c>,<c>j</c>,<c>k</c> and <c>l</c> (and the arrow keys) to move
130 around in the text file. Try using <c>h</c> until you get to the beginning of a line. Notice that
131 vi doesn't allow you to "wrap around" to the previous line by hitting <c>h</c> while you're on the first
132 character. Likewise, you can't "wrap around" to the next line by hitting <c>l</c> at the end of a line.
133 </p>
134
135 </body>
136 </section>
137 <section>
138 <title>Moving in vi, part 2</title>
139 <body>
140
141 <p>vi offers special shortcuts for jumping to the beginning or end of the current line. You can
142 press <c>0</c> (zero) to jump to the first character of a line, and <c>$</c> to jump to the last character of the line.
143 Try 'em and see. Since vi has so many handy movement commands, it makes a great "pager" (like the
144 more or less commands.) Using vi as a pager will also help you to learn all the movement
145 commands very quickly.</p>
146
147 <p>You can also use <c>&lt;CTR&gt;F</c> and <c>&lt;CTR&gt;B</c> to move forwards and backwards a page at a time.
148 Modern versions of vi (like vim) will also allow you to use the PGUP and PGDOWN keys for this purpose.
149 </p>
150
151 </body>
152 </section>
153 <section>
154 <title>Word moves, part 1</title>
155 <body>
156 <p>vi also allows you to move to the left or right by word increments. To move to the <i>first</i> character of the
157 next word, press <c>w</c>. To move to the <i>last</i> character of the next word, press <c>e</c>. To move to the first character
158 of the <i>previous</i> word, press <c>b</c>. Test 'em out.</p>
159 </body>
160 </section>
161
162 <section>
163 <title>Word moves, part 2</title>
164 <body>
165 <p>After playing around with the word movement commands, you may have noticed that vi
166 considers words like "foo-bar-oni" as five separate words! This is because by default,
167 vi delimits words by spaces <i>or</i> punctuation. foo-bar-oni is therefore considered
168 five words: "foo","-","bar","-" and "oni".</p>
169 <p>Sometimes, this is what you want, and sometimes it isn't. Fortunately, vi also
170 understands the concept of a "bigword". vi delimits bigwords by <i>spaces or newlines only</i>.
171 This means that while foo-bar-oni is considered five vi words, it's considered only one
172 vi bigword.</p>
173
174 </body>
175 </section>
176 <section>
177 <title>Word moves, part 3</title>
178 <body>
179 <p>To jump around to the next and previous bigword, you can use a <i>capitalized</i>
180 word move command. Use <c>W</c> to jump to the first character of the next bigword, <c>E</c> to jump
181 to the last character of the next bigword, and <c>B</c> to jump to the first character
182 of the previous bigword. Test 'em out, and compare the matching word and bigword movement
183 commands until you understand their differences.
184 </p>
185
186
187 </body>
188 </section>
189 <section>
190 <title>Bigger moves</title>
191 <body>
192 <p>We just have a few more commands to cover before it's time to start puting together our
193 cheat sheet. You can use the <c>(</c> and <c>)</c> characters to move to the beginning of the previous and next sentence.
194 In addition, you can hit <c>{</c> or <c>}</c> to jump to the beginning of the current paragraph, and the beginning of the
195 next. Test 'em out.</p>
196
197 </body>
198 </section>
199 </chapter>
200 <chapter>
201 <title>quiting</title>
202 <section>
203 <title>Quitting</title>
204 <body>
205 <p>We've covered the basic movement commands, but there are another couple of commands that you need
206 to know. Typing <c>:q</c> will quit vi. If this doesn't work, then you probably accidentally modified the file
207 in some way. To tell vi to quit, throwing away any changes, type <c>:q!</c>. You should now be at the command
208 prompt.</p>
209
210 <p>In vi, any command that begins with a ":" is said to be an <i>ex-mode</i> command. This is because vi
211 has a built-in non-visual editor called <e>ex</e>. It can be used similarly to sed to perform line-based
212 editing operations. In addition, it can also be used to quit, as we've just seen. If you ever hit
213 the <c>Q</c> key while in command mode, you'll be transported to ex mode. If this ever happens to you , you'll
214 be confronted with a : prompt, and hitting enter will scroll the entire screen upwards. To get back
215 to good 'ol vi mode, simply type vi and hit enter.</p>
216
217 </body>
218 </section>
219 </chapter>
220 <chapter>
221 <title>The Cheat Sheet</title>
222 <section>
223 <title>The beginnings of the cheat sheet</title>
224 <body>
225 <p>We've covered a lot of commands, and it's time to transcribe them to our cheat sheet. For the
226 cheat sheet, you'll need a US letter or A4 sized piece of paper (we're going to pack a lot of info
227 onto this sheet!) Here's a picture of my cheat sheet after I've transcribed all the commands that
228 we've covered so far. Try to follow my layout if possible so that we can fit everything on one
229 sheet.</p>
230
231 <figure link="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/vicheat-first.png" short="First part of the cheat sheet" caption="Cheat Sheet"/>
232
233 </body>
234
235 </section>
236 <section>
237 <title>Miscellaneous vi</title>
238
239 <body>
240 <p>Let's continue our rapid command-covering pace. In command-mode, you can jump to a particularline by typing <c>G</c>. To jump to the first line of a file, type <c>1G</c>. Note that <c>G</c> is capitalized.</p>
241 <p>If you want to jump to the next occurence of a particular text pattern, type <c>/&lt;regexp&gt;</c> and hit <c>enter</c>. Replace
242 &lt;regexp&gt; with the regular expression you're looking for. If you don't know how to use regular expressions, don't
243 fret -- typing <c>/foo</c> will move to the next occurence of <i>foo</i>. The only thing you'll need to watch out for is when
244 you want to refer to the literal <i>^</i>, <i>.</i>, <i>$</i> or <i>\</i> characters. Prefix these characters with a backslash (<i>\</i>), and you'll
245 be set. For example, <c>/foo\.gif</c> will search for the next occurence of "<i>foo.gif</i>".</p>
246 <p>To repeat the search forwards, hit <c>n</c>. To repeat the search backwards, type <c>N</c>. As always, test these
247 commands out in your very own vi editor. You can also type <c>//</c> to repeat the last search.</p>
248
249 </body>
250 </section>
251 </chapter>
252 <chapter>
253 <title>Saving and Editing</title>
254 <section>
255 <title>Save and save as...</title>
256 <body>
257 <p>We've covered how you can use the <i>ex</i> command <c>:q</c> to quit from vi. If you want to save your
258 changes, type <c>:w</c>. If you want to save your changes to another file, type <c>:w filename.txt</c> to
259 save as <e>filename.txt</e>. If you want to save and quit, type <c>:x</c> or <c>:wq</c>.</p>
260 <p>In vim (and other advanced vi editors, like elvis)<c>:w</c>, you can have multiple buffers open at once. To open a file into a new window, type <c>:sp filename.txt</c>. <e>filename.txt</e> will appear open for editing in a new split window. To switch between windows, type <c>&lt;CTR&gt;w&lt;CTR&gt;w</c> (control-w twice). Any <c>:q</c>, <c>:q!</c>, <c>:w</c> and <c>:x</c> commands that you enter will only be applied to the currently-active window.</p>
261 </body>
262 </section>
263
264 <section>
265 <title>Simple edits</title>
266 <body>
267 <p>Now, it's time to start learning some of the simple editing commands. The commands that
268 we'll cover here are considered "simple" because the commands keep you in command mode. The
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>
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
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 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.
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>
278
279 </body>
280 </section>
281 <section>
282 <title>Repeating and deleting</title>
283 <body>
284 <p>You can repeat any editing command by hitting the <c>.</c> key. If you experiment, you'll see that
285 typing <c>dd...</c> will delete 4 lines, and <c>J......</c> will join four lines. As usual, vi provides with
286 another handy shortcut.
287 </p>
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
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>
292 </body>
293 </section>
294 <section>
295 <title>Undo!</title>
296 <body>
297 <p>Now that we're experimenting with deletion, it would be a good time to learn how to undo any changes.
298 By pressing <c>u</c>, the original version of vi allowed you to undo the last edit only. However, modern versions
299 of vi like vim will allow you to repeatedly press <c>u</c> to continue to undo changes to your file. Try combining
300 some <c>d</c> and <c>u</c> commands together.
301 </p>
302 </body>
303 </section>
304
305 <section>
306 <title>Updating the cheat sheet</title>
307 <body>
308 <p>Time to update the cheat sheet! After adding all the commands we've covered so far, your
309 cheat sheet should look like this:</p>
310
311 <figure link="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/vicheat-edit.png" short="Cheat sheet" caption="Cheat sheet with editing commands"/>
312
313 </body>
314 </section>
315 </chapter>
316 <chapter>
317 <title>Insert mode</title>
318 <section>
319 <title>Insert mode</title>
320
321 <body>
322 <p>So far, we've covered how to move around in vi, perform file i/o, and perform basic editing
323 operations. However, I still haven't shown you how to actually type in free-form text! This
324 was intentional, because vi's insert mode is a bit complicated at first. However, after you
325 become comfortable with insert mode, its complexity (and flexibility) will become an asset.
326 </p>
327 <p>In vi insert mode, you'll be able to enter text directly to the screen just like you can in many
328 other visual editors. Once you've entered your modifications, you can hit escape to return to
329 command mode. You can enter insert mode by pressing <c>i</c> or <c>a</c>. If you press <c>i</c>, your text will be <e>inserted</e>
330 before the current character, and if you hit <c>a</c>, your text will be <e>appended</e> after the current character.
331 Remember, after you enter your text, hit <c>&lt;ESC&gt;</c> to return to command mode.</p>
332 </body>
333 </section>
334 <section>
335 <title>Benefits of insert mode</title>
336 <body>
337 <p>Go ahead and try using the <c>a</c> and <c>i</c> commands. Hit either <c>a</c> or <c>i</c>, type some text, and then hit
338 escape to get back to command mode. After hitting <c>a</c> or <c>i</c>, try hitting <c>&lt;ENTER&gt;</c>, and see what happens.
339 Try using the arrow keys and the <c>&lt;DEL&gt;</c> key to get a feel for how insert mode works. By using
340 the arrow keys and <c>&lt;DEL&gt;</c> key, you can perform significant editing steps without repeatedly entering
341 and leaving insert mode</p>
342 </body>
343 </section>
344 <section>
345 <title>Insert options</title>
346 <body>
347 <p>Here are some other handy ways to enter insert mode. Press <c>A</c> (captial) to begin appending
348 to the <e>end</e> of the current line, regardless of your current position on the line. Likewise, press
349 <c>I</c> (capital) to begin inserting text at the <e>beginning</e> of the current line. Press <c>o</c> to create
350 a new blank line below the current line into which you can insert text, and press <c>O</c> (capital) to
351 create a new line above the current line. To replace the entire current line with a new line,
352 press <c>cc</c>. To replace everything from the current position to the end of the line, type <c>c$</c>. To replace
353 everything from the current position to the beginning of the line, type <c>c0</c>.</p>
354 <p>In addition to performing a special operation, every one of these commands will put you
355 into insert mode. After typing in your text, hit <c>&lt;ESC&gt;</c> to return to command mode.
356 </p>
357
358 </body>
359 </section>
360 <section>
361 <title>Changing text</title>
362 <body>
363 <p>We've used the <c>c</c> (change) command a little bit so far when we typed <c>cc</c>, <c>c0</c> and <c>c$</c>. <c>cc</c> is a special
364 form of the change command, similar to <c>dd</c>. the <c>c0</c> and <c>c$</c> commands are examples of using the change
365 command in combination with a movement command. In this form, <c>c</c> works similarly to <c>d</c>, except that it
366 leaves you in insert mode so that you can enter replacement text for the deleted region. Try combining some
367 movement commands with <c>c</c> and test them out on your file (hint: <c>cW</c>, <c>ce</c>, <c>c(</c> .)
368 </p>
369
370 </body>
371 </section>
372 </chapter>
373 <chapter>
374 <title>Compound Commands</title>
375 <section>
376 <title>Compound commands</title>
377 <body>
378 <p>vi <e>really</e> becomes powerful when you start using compound ("combo") commands, like <c>d{</c> and <c>cw</c>.
379 In addition to these commands, you can also combine a number with any movement command, such as
380 <c>3w</c>, which will tell vi to jump three words to the right. Here are some more movement "combo" command
381 examples: <c>12b</c>, <c>4j</c>.</p>
382 <p>vi, in addition to allowing (number)(movement command) combinations, also allows <c>d</c> or <c>c</c>
383 to be combined with a number or movement command. So, <c>d3w</c> will delete the next three words, <c>d2j</c> will
384 delete the current and next two lines, etc. Test out some <c>c</c> and <c>d</c> combo moves to get a feel for
385 how powerful and concise vi editing can be. Once these commands are second-nature, you'll be able
386 to edit files at blazing speed.</p>
387
388 </body>
389 </section>
390 <section>
391 <title>Updating the cheat sheet</title>
392 <body>
393 <p>Time to update the cheat sheet again. Here's what it looks like so far:</p>
394 <p>
395 <figure link="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/vicheat-compound.png" short="Cheat Sheet" caption="Cheat sheet with compound commands"/>
396
397 </p>
398 </body>
399 </section>
400 <section>
401 <title>Productivity features</title>
402
403 <body>
404 <p>So far, we've covered how to move, save and quit, perform simple edits
405 and deletions, and use insert mode. With everything listed on the cheat
406 sheet so far, you should be able to use vi to perform almost any task.</p>
407 <p>However, vi also has many more powerful commands. In this section, you'll
408 learn how to <e>cut</e>, <e>copy</e> and <e>paste</e>, <e>search</e> and <e>replace</e>, and use <e>autoindent</e>
409 features. These commands will help make vi more fun and productive.</p>
410
411 </body>
412 </section>
413 <section>
414 <title>Visual mode</title>
415 <body>
416 <p>The best way to cut and paste is to use visual mode, a special mode that
417 has been added to modern versions of vi, like vim and elvis. You can think
418 of visual mode as a "highlight text" mode. Once the text is highlighted,
419 it can be copied or deleted, and then pasted. If you are using gvim, you
420 can highlight by simply dragging the left mouse button over a particular
421 region:</p>
422 <p>
423 <figure link="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/vihighlight.png" short="Highlighted text" caption="VIM with highlighted text"/>
424
425 </p>
426 </body>
427 </section>
428 <section>
429 <title></title>
430 <body>
431
432 <p>In addition, you can also enter visual mode by hitting <c>v</c> (this may be your
433 only option if you are using vi from the console.) Then, by movng the cursor
434 using movement commands (typically the arrow keys), you'll be able to highlight
435 a region of text. Once highlighted, we are ready to cut or copy the text.
436 </p>
437
438 <p>If you're copying the text, hit <c>y</c> (which stands for "yank"). If you're cutting
439 the text, hit <c>d</c>. You'll be placed back in command mode. Now, move to the position
440 where you'd like to insert the cut or copied text, and hit <c>P</c> to insert after the cursor,
441 or <c>p</c> to insert before the cursor. Voila, the cut/copy and paste is complete!
442 Test out several copy/cut and paste operations before advancing to the next section.
443 </p>
444
445 </body>
446 </section>
447 <section>
448 <title>Replacing text</title>
449 <body>
450 <p>To replace patterns of text, we use <e>ex</e> mode. If you'd like to replace the first pattern
451 that appears on the current line, type <c>:s/&lt;regexp&gt;/&lt;replacement&gt;/</c> and hit <c>&lt;ENTER&gt;</c>, where &lt;regexp&gt;
452 is the pattern you'd like to match and &lt;replacement&gt; is the replacement string. To replace all
453 matches on the current line, type <c>:s/&lt;regexp&gt;/&lt;replacement&gt;/g</c> and hit enter. To replace every
454 occurence of this pattern in your file (normally what you want), type <c>:%s/&lt;regexp&gt;/&lt;replacement&gt;/g</c>.
455 If you'd like to do a global replace, but have vi prompt you for each change, type
456 <c>:%s/&lt;regexp&gt;/&lt;replacement&gt;/gc</c> (stands for "confirm") and hit <c>&lt;ENTER&gt;</c>.</p>
457
458 </body>
459 </section>
460 <section>
461 <title>Indentation</title>
462 <body>
463 <p>vi supports autoindentation, for when you are editing source code. Most modern versions
464 of vi (like vim) will auto-enable autoindent mode when you are editing a source file (like a .c
465 file, for example). When autoindent is enabled, you can use <c>&lt;CTR&gt;d</c> (control-d) to move one indent
466 level to the left, and <c>&lt;CTR&gt;t</c> (control-t) to move one indent level to the right. If autoindent
467 wasn't enabled automatically, you can manually enable it by typing in the <e>ex</e> command <c>:set</c> autoindent.
468 You can also tell vi to set the tab size to your favorite setting by using the <c>:set tabstop</c> command;
469 <c>:set tabstop=4</c> is quite popular.</p>
470
471 </body>
472 </section>
473 <section>
474 <title>Our final cheat sheet</title>
475 <body>
476 <p>Well, we've reached the end of the vi tutorial! After adding all the advanced editing commands
477 to your cheat sheet, it should look like this:</p>
478 <p>
479 <figure link="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/vicheat-final.png" short="Cheat Sheet" caption="Final cheet sheet"/>
480
481 </p>
482
483 <p>Keep your cheat sheet handy, and begin using vi to edit files and compose emails. Refer to the
484 cheat sheet when needed; you'll find that within the week, you'll have nearly all the commands
485 memorized and your vi productivity will shoot through the roof!</p>
486
487 </body>
488 </section>
489 <section>
490 <title>Resources</title>
491 <body>
492 <p>Here are some resources you may find helpful as you continue to learn more about vi:</p>
493 <ul>
494 <li><uri link="http://www.thomer.com/thomer/vi/vi.html">The vi Lovers Home Page</uri>, an excellent resource for all
495 things vi.</li>
496 <li><uri link="http://www.vim.org">The vim homepage</uri> is the place to go for all your vim needs.</li>
497 <li>If you're looking for a good, old-fashioned book, <uri link="http://www.oreilly.com/catalog/vi6/">Learning the vi Editor, 6th Edition</uri> would be an excellent choice. Contains good coverage of vi and vi clones.</li>
498 </ul>
499 </body>
500 </section>
501 </chapter>
502 </guide>

  ViewVC Help
Powered by ViewVC 1.1.20