forked from PogiNate/Painless-Vim-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmotion3.txt
25 lines (15 loc) · 1.13 KB
/
motion3.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
words vs WORDS
The following url is stupider than it needs to be. Use a "lower case" *word* to remove one of the "dots".
http://bob-dot-dot-com.com
Now remove the entire URL above using a WORD command.
let's change Inner words now! Make the cow below say the right sound:
Oh the cow in the meadow goes "oink",
Oh the cow in the meadow goes "oink",
Then the farmer hits him on the head and grinds him up
And that's how we get hamburgers!
--Phoebe Buffay
Now let's look at doing full text objects: replace the entire sentence (but not the entire line) below with something happier:
"I seem to be having tremendous difficulty with my lifestyle" --Arthur Dent
Now let's change line seventeen. You don't need to to be told that you're not supposed to delete the entire line, you're a smart person. So remove the parentheses (and everything between them) using an "all" command.
Move forward six words in the following sentence, then back two. Why, you ask? More like "why not?" You can do this with only four keystrokes. (Five, if you need to use ^ to get to the beginning of the line.)
Spot the marks, X marks the spot!