19
19
properly. If you only read the text, you will forget the commands!
20
20
21
21
Now, make sure that your Caps-Lock key is NOT depressed and press
22
- the j key enough times to move the cursor so that Lesson 1.1
22
+ the j key enough times to move the cursor so that lesson 1.1
23
23
completely fills the screen.
24
24
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25
25
Lesson 1.1: MOVING THE CURSOR
36
36
2. Hold down the down key (j) until it repeats.
37
37
Now you know how to move to the next lesson.
38
38
39
- 3. Using the down key, move to Lesson 1.2.
39
+ 3. Using the down key, move to lesson 1.2.
40
40
41
41
NOTE: If you are ever unsure about something you typed, press <ESC> to place
42
42
you in Normal mode. Then retype the command you wanted.
@@ -64,7 +64,7 @@ NOTE: The cursor keys should also work. But using hjkl you will be able to
64
64
NOTE: :q! <ENTER> discards any changes you made. In a few lessons you
65
65
will learn how to save the changes to a file.
66
66
67
- 5. Move the cursor down to Lesson 1.3.
67
+ 5. Move the cursor down to lesson 1.3.
68
68
69
69
70
70
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -84,7 +84,7 @@ NOTE: :q! <ENTER> discards any changes you made. In a few lessons you
84
84
85
85
---> The ccow jumpedd ovverr thhe mooon.
86
86
87
- 5. Now that the line is correct, go on to Lesson 1.4.
87
+ 5. Now that the line is correct, go on to lesson 1.4.
88
88
89
89
NOTE: As you go through this tutor, do not try to memorize, learn by usage.
90
90
@@ -126,7 +126,7 @@ NOTE: As you go through this tutor, do not try to memorize, learn by usage.
126
126
127
127
3. As the text has been appended press <ESC> to return to Normal mode.
128
128
129
- 4. Move the cursor to the second line marked ---> and repeat
129
+ 4. Move the cursor to the second line marked ---> and repeat
130
130
steps 2 and 3 to correct this sentence.
131
131
132
132
---> There is some text missing from th
@@ -152,13 +152,13 @@ NOTE: As you go through this tutor, do not try to memorize, learn by usage.
152
152
153
153
3. Insert and delete text as you learned in the previous lessons.
154
154
155
- 4. Save the file with changes and exit Vim with: :wq <ENTER>
155
+ 4. Save the file with changes and exit Vim with: :wq <ENTER>
156
156
157
157
5. If you have quit vimtutor in step 1 restart the vimtutor and move down to
158
158
the following summary.
159
159
160
160
6. After reading the above steps and understanding them: do it.
161
-
161
+
162
162
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163
163
Lesson 1 SUMMARY
164
164
@@ -180,7 +180,7 @@ NOTE: As you go through this tutor, do not try to memorize, learn by usage.
180
180
NOTE: Pressing <ESC> will place you in Normal mode or will cancel
181
181
an unwanted and partially completed command.
182
182
183
- Now continue with Lesson 2.
183
+ Now continue with lesson 2.
184
184
185
185
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
186
186
Lesson 2.1: DELETION COMMANDS
@@ -202,7 +202,7 @@ Now continue with Lesson 2.
202
202
203
203
---> There are a some words fun that don't belong paper in this sentence.
204
204
205
- 5. Repeat steps 3 and 4 until the sentence is correct and go to Lesson 2.2.
205
+ 5. Repeat steps 3 and 4 until the sentence is correct and go to lesson 2.2.
206
206
207
207
208
208
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -222,7 +222,7 @@ Now continue with Lesson 2.
222
222
---> Somebody typed the end of this line twice. end of this line twice.
223
223
224
224
225
- 5. Move on to Lesson 2.3 to understand what is happening.
225
+ 5. Move on to lesson 2.3 to understand what is happening.
226
226
227
227
228
228
@@ -257,7 +257,7 @@ NOTE: Pressing just the motion while in Normal mode without an operator will
257
257
258
258
** Typing a number before a motion repeats it that many times. **
259
259
260
- 1. Move the cursor to the start of the line marked ---> below .
260
+ 1. Move the cursor to the start of the line below marked --->.
261
261
262
262
2. Type 2w to move the cursor two words forward.
263
263
@@ -269,7 +269,7 @@ NOTE: Pressing just the motion while in Normal mode without an operator will
269
269
270
270
---> This is just a line with words you can move around in.
271
271
272
- 6. Move on to Lesson 2.5.
272
+ 6. Move on to lesson 2.5.
273
273
274
274
275
275
@@ -286,10 +286,10 @@ NOTE: Pressing just the motion while in Normal mode without an operator will
286
286
287
287
1. Move the cursor to the first UPPER CASE word in the line marked --->.
288
288
289
- 2. Type d2w to delete the two UPPER CASE words
289
+ 2. Type d2w to delete the two UPPER CASE words.
290
290
291
291
3. Repeat steps 1 and 2 with a different count to delete the consecutive
292
- UPPER CASE words with one command
292
+ UPPER CASE words with one command.
293
293
294
294
---> this ABC DE line FGHI JK LMN OP of words is Q RS TUV cleaned up.
295
295
@@ -338,7 +338,7 @@ NOTE: Pressing just the motion while in Normal mode without an operator will
338
338
339
339
---> Fiix the errors oon thhis line and reeplace them witth undo.
340
340
341
- 8. These are very useful commands. Now move on to the Lesson 2 Summary.
341
+ 8. These are very useful commands. Now move on to the lesson 2 Summary.
342
342
343
343
344
344
@@ -372,7 +372,7 @@ NOTE: Pressing just the motion while in Normal mode without an operator will
372
372
373
373
** Type p to put previously deleted text after the cursor. **
374
374
375
- 1. Move the cursor to the first ---> line below .
375
+ 1. Move the cursor to the first line below marked --->.
376
376
377
377
2. Type dd to delete the line and store it in a Vim register.
378
378
@@ -406,7 +406,7 @@ NOTE: Pressing just the motion while in Normal mode without an operator will
406
406
---> Whan this lime was tuoed in, someone presswd some wrojg keys!
407
407
---> When this line was typed in, someone pressed some wrong keys!
408
408
409
- 5. Now move on to Lesson 3.3.
409
+ 5. Now move on to lesson 3.3.
410
410
411
411
NOTE: Remember that you should be learning by doing, not memorization.
412
412
@@ -447,7 +447,7 @@ Notice that ce deletes the word and places you in Insert mode.
447
447
448
448
2. The motions are the same, such as w (word) and $ (end of line).
449
449
450
- 3. Move to the first line below marked --->.
450
+ 3. Move the cursor to the first line below marked --->.
451
451
452
452
4. Move the cursor to the first error.
453
453
@@ -558,7 +558,7 @@ NOTE: This is very useful in debugging a program with unmatched parentheses!
558
558
559
559
1. Move the cursor to the line below marked --->.
560
560
561
- 2. Type :s/thee/the <ENTER> . Note that this command only changes the
561
+ 2. Type :s/thee/the <ENTER> . Note that this command only changes the
562
562
first occurrence of "thee" in the line.
563
563
564
564
3. Now type :s/thee/the/g . Adding the g flag means to substitute
@@ -623,7 +623,7 @@ NOTE: All : commands must be finished by hitting <ENTER>
623
623
Lesson 5.2: MORE ON WRITING FILES
624
624
625
625
626
- ** To save the changes made to the text, type :w FILENAME. **
626
+ ** To save the changes made to the text, type :w FILENAME **
627
627
628
628
1. Type :!dir or :!ls to get a listing of your directory.
629
629
You already know you must hit <ENTER> after this.
@@ -638,7 +638,7 @@ NOTE: All : commands must be finished by hitting <ENTER>
638
638
NOTE: If you were to exit Vim and start it again with vim TEST , the file
639
639
would be an exact copy of the tutor when you saved it.
640
640
641
- 5. Now remove the file by typing (MS-DOS): :!del TEST
641
+ 5. Now remove the file by typing (Windows): :!del TEST
642
642
or (Unix): :!rm TEST
643
643
644
644
@@ -673,15 +673,15 @@ NOTE: Pressing v starts Visual selection. You can move the cursor around
673
673
674
674
1. Place the cursor just above this line.
675
675
676
- NOTE: After executing Step 2 you will see text from Lesson 5.3. Then move
676
+ NOTE: After executing Step 2 you will see text from lesson 5.3. Then move
677
677
DOWN to see this lesson again.
678
678
679
679
2. Now retrieve your TEST file using the command :r TEST where TEST is
680
680
the name of the file you used.
681
681
The file you retrieve is placed below the cursor line.
682
682
683
683
3. To verify that a file was retrieved, cursor back and notice that there
684
- are now two copies of Lesson 5.3, the original and the file version.
684
+ are now two copies of lesson 5.3, the original and the file version.
685
685
686
686
NOTE: You can also read the output of an external command. For example,
687
687
:r !ls reads the output of the ls command and puts it below the
@@ -695,7 +695,7 @@ NOTE: You can also read the output of an external command. For example,
695
695
1. :!command executes an external command.
696
696
697
697
Some useful examples are:
698
- (MS-DOS ) (Unix)
698
+ (Windows ) (Unix)
699
699
:!dir :!ls - shows a directory listing.
700
700
:!del FILENAME :!rm FILENAME - removes file FILENAME.
701
701
@@ -717,7 +717,7 @@ NOTE: You can also read the output of an external command. For example,
717
717
718
718
** Type o to open a line below the cursor and place you in Insert mode. **
719
719
720
- 1. Move the cursor to the line below marked --->.
720
+ 1. Move the cursor to the first line below marked --->.
721
721
722
722
2. Type the lowercase letter o to open up a line BELOW the cursor and place
723
723
you in Insert mode.
@@ -740,8 +740,8 @@ NOTE: You can also read the output of an external command. For example,
740
740
741
741
** Type a to insert text AFTER the cursor. **
742
742
743
- 1. Move the cursor to the start of the line below marked --->.
744
-
743
+ 1. Move the cursor to the start of the first line below marked --->.
744
+
745
745
2. Press e until the cursor is on the end of li .
746
746
747
747
3. Type an a (lowercase) to append text AFTER the cursor.
@@ -750,7 +750,7 @@ NOTE: You can also read the output of an external command. For example,
750
750
mode.
751
751
752
752
5. Use e to move to the next incomplete word and repeat steps 3 and 4.
753
-
753
+
754
754
---> This li will allow you to pract appendi text to a line.
755
755
---> This line will allow you to practice appending text to a line.
756
756
@@ -786,10 +786,10 @@ NOTE: Replace mode is like Insert mode, but every typed character deletes an
786
786
787
787
** Use the y operator to copy text and p to paste it **
788
788
789
- 1. Go to the line marked with ---> below and place the cursor after "a)".
790
-
789
+ 1. Move to the line below marked ---> and place the cursor after "a)".
790
+
791
791
2. Start Visual mode with v and move the cursor to just before "first".
792
-
792
+
793
793
3. Type y to yank (copy) the highlighted text.
794
794
795
795
4. Move the cursor to the end of the next line: j$
@@ -802,14 +802,14 @@ NOTE: Replace mode is like Insert mode, but every typed character deletes an
802
802
---> a) this is the first item.
803
803
b)
804
804
805
- NOTE: you can also use y as an operator; yw yanks one word.
805
+ NOTE: You can also use y as an operator; yw yanks one word.
806
806
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
807
807
Lesson 6.5: SET OPTION
808
808
809
809
810
810
** Set an option so a search or substitute ignores case **
811
811
812
- 1. Search for 'ignore' by entering: /ignore <ENTER>
812
+ 1. Search for 'ignore' by entering: /ignore <ENTER>
813
813
Repeat several times by pressing n .
814
814
815
815
2. Set the 'ic' (Ignore case) option by entering: :set ic
@@ -823,9 +823,9 @@ NOTE: Replace mode is like Insert mode, but every typed character deletes an
823
823
824
824
6. To disable ignoring case enter: :set noic
825
825
826
- NOTE: To remove the highlighting of matches enter: :nohlsearch
826
+ NOTE: To remove the highlighting of matches enter: :nohlsearch
827
827
NOTE: If you want to ignore case for just one search command, use \c
828
- in the phrase: /ignore\c <ENTER>
828
+ in the phrase: /ignore\c <ENTER>
829
829
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
830
830
Lesson 6 SUMMARY
831
831
@@ -883,7 +883,7 @@ NOTE: If you want to ignore case for just one search command, use \c
883
883
884
884
1. Start editing the "vimrc" file. This depends on your system:
885
885
:e ~/.vimrc for Unix
886
- :e $VIM/_vimrc for MS- Windows
886
+ :e $VIM/_vimrc for Windows
887
887
888
888
2. Now read the example "vimrc" file contents:
889
889
:r $VIMRUNTIME/vimrc_example.vim
@@ -909,7 +909,7 @@ NOTE: If you want to ignore case for just one search command, use \c
909
909
910
910
4. Press CTRL-D and Vim will show a list of commands that start with "e".
911
911
912
- 5. Press <TAB> and Vim will complete the command name to ":edit".
912
+ 5. Type d <TAB> and Vim will complete the command name to ":edit".
913
913
914
914
6. Now add a space and the start of an existing file name: :edit FIL
915
915
@@ -922,13 +922,13 @@ NOTE: Completion works for many commands. Just try pressing CTRL-D and
922
922
Lesson 7 SUMMARY
923
923
924
924
925
- 1. Type :help or press <F1> or <Help > to open a help window.
925
+ 1. Type :help or press <F1> or <HELP > to open a help window.
926
926
927
927
2. Type :help cmd to find help on cmd .
928
928
929
- 3. Type CTRL-W CTRL-W to jump to another window
929
+ 3. Type CTRL-W CTRL-W to jump to another window.
930
930
931
- 4. Type :q to close the help window
931
+ 4. Type :q to close the help window.
932
932
933
933
5. Create a vimrc startup script to keep your preferred settings.
934
934
0 commit comments