To navigate through words in a line:
w - navigate to the beginning of the next word
W - same as w, beginning of the next WORD, which ignores punctuations.
What's the difference between a word and WORD?
A word includes punctuations, while a WORD does not.
Try navigating through the following:
1-800-555-1234
My sister's boyfriend's mother.
// Now with some simple java code
for (int i = 0; i < 10; i++) {
System.out.println("I love vim's navigation tools.");
}
To navigate to the end of the word/WORD:
e - to the last letter of the next word
E - same as e, ignoring punctuations
# now navigate through a simply Python function
def square(x):
return x ** 2
Not to go back a word:
b - navigate back to the beginning of a word
B - same as b, ignoring punctuations
<!-- HTML for web developers ;) -->
<p>Hello I am a block paragraph. <b>Don't mess with me</b>.</p>
Review Questions:
1) How do you activate COMMAND mode?
2) How many words is 192.168.1.1? How many WORDs is it?
3) How would you move to the fourth word forward? How about the third WORD back?
Solutions
1) ESC for command mode.
2) 7 words, 1 WORD.
3) 4w, 3B.
Relieve spasms, tight muscles, trigger points and pressure points with the Body Back Buddy! This trigger point massage is designed to help you self-message any area of your body - especially those that are hard to reach. Keeping your muscles relaxes and out of contraction is importan in helping to reduce pain and prevent muscle injury.
$ Check priceThis book approaches system administration in a practical way and is an invaluable reference for both new administrators and experienced professionals. It details best practices for every facet of system administration, including storage management, network design and administration, email, web hosting, scripting, and much more.
$ Check priceAd