-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path11deleting.txt
51 lines (37 loc) · 1.25 KB
/
11deleting.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
11. Deleting: x, X, d, . (period)
---------------
So far we've covered, inserting and replacing.
Now let's hop on over to the deleting!
*** Remember to hit "u" to undo a change! ***
There are many ways we can delete text in a file.
x - delete the character at the cursor
3x deletes current character + 2 characters to the right of cursor
X - delete character to the left
3x deletes 3 characters to the left of cursor
Try dexletxing axxll txxxxhe "x" chxaraxcters hxere!
We can also delete words or WORDs at a time.
d - delete something
dW deletes to beginning of next WORD
dE deletes to end of next WORD
dB deletes to beginning of previous WORD
Let's try deleting all the words here.
Another nifty tool:
. - repeat any command
I love Justin Bieber!
I love Justin Bieber!
I love Justin Bieber!
I love Justin Bieber!
I love Justin Bieber!
I love Justin Bieber!
I love Justin Bieber!
I love Justin Bieber!
I love Justin Bieber!
I love Justin Bieber!
I love Justin Bieber!
I love Justin Bieber!
Review Problems:
1) What's the difference between word and WORD? How many words and WORDs does www.youtube.com have?
2) How do you activate REPLACE mode?
Solutions:
1) WORDs ignore punctuations. www.youtube.com has 5 words and 1 WORD.
2) "R"