-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path12cutAndPaste.txt
40 lines (25 loc) · 917 Bytes
/
12cutAndPaste.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
12. Cutting and pasting: d, p, P
---------------
Deleting doesn't just delete keys, it copies it into the buffer (or the clipboard).
Sound familiar? This is exactly how "cut" works.
To "paste" this snippet, use the following:
p - paste below cursor line
P - paste above cursor line
dd - deletes (or cuts) current line
Let's delete this line...
and make it reappear below!
Can you make "superfragilisticexpialidocious" disappear?
Now paste it here! ->
Wow! What is this sorcery? Are you a wizard? Can you make this rabbit disappear too?
(\__/)
(='.'=)
(")_(")
Don't forget to make it re-appear!
Or the kids will be very upset...
Great job! In the next tutorial we'll look at copying and pasting.
Review Questions:
1) Delete every word above that starts with a vowel.
2) How would you undo the last 5 words you just deleted?
Solutions:
1) You can go to the front of each word and type "dw"
2) "5u"