@@ -143,12 +143,12 @@ NOTE: As you go through this tutor, do not try to memorize, learn by usage.
143
143
144
144
!! NOTE: Before executing any of the steps below, read this entire lesson!!
145
145
146
- 1. Exit this tutor as you did in lesson 1.2: :q!
147
- Or, if you have access to another terminal, do the following there.
146
+ 1. If you have access to another terminal, do the following there.
147
+ Otherwise, exit this tutor as you did in lesson 1.2: :q!
148
148
149
- 2. At the shell prompt type this command: vim tutor <ENTER>
150
- 'vim' is the command to start the Vim editor, 'tutor ' is the name of the
151
- file you wish to edit. Use a file that may be changed .
149
+ 2. At the shell prompt type this command: vim file.txt <ENTER>
150
+ 'vim' is the command to start the Vim editor, 'file.txt ' is the name of
151
+ the file you wish to edit. Use the name of a file that you can change .
152
152
153
153
3. Insert and delete text as you learned in the previous lessons.
154
154
@@ -347,25 +347,25 @@ Doubling to operate on a line also works for operators mentioned below.
347
347
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
348
348
Lesson 2 SUMMARY
349
349
350
+ 1. To delete from the cursor up to the next word type: dw
351
+ 2. To delete from the cursor up to the end of the word type: de
352
+ 3. To delete from the cursor to the end of a line type: d$
353
+ 4. To delete a whole line type: dd
350
354
351
- 1. To delete from the cursor up to the next word type: dw
352
- 2. To delete from the cursor to the end of a line type: d$
353
- 3. To delete a whole line type: dd
354
-
355
- 4. To repeat a motion prepend it with a number: 2w
356
- 5. The format for a change command is:
355
+ 5. To repeat a motion prepend it with a number: 2w
356
+ 6. The format for a change command is:
357
357
operator [number] motion
358
358
where:
359
359
operator - is what to do, such as d for delete
360
360
[number] - is an optional count to repeat the motion
361
361
motion - moves over the text to operate on, such as w (word),
362
- $ (to the end of line), etc.
362
+ e (end of word), $ ( end of the line), etc.
363
363
364
- 6 . To move to the start of the line use a zero: 0
364
+ 7 . To move to the start of the line use a zero: 0
365
365
366
- 7 . To undo previous actions, type: u (lowercase u)
366
+ 8 . To undo previous actions, type: u (lowercase u)
367
367
To undo all the changes on a line, type: U (capital U)
368
- To undo the undo's, type: CTRL-R
368
+ To undo the undo's, type: CTRL-R
369
369
370
370
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
371
371
Lesson 3.1: THE PUT COMMAND
0 commit comments