Tutorial by Examples

Suppose we want to select a word without surrounding white spaces, use the text object iw for inner word using visual mode: Got to normal mode by pressing ESC Type viw at the beginning of a word This will select the inner word
Suppose we want to select a word with a surrounding white space, use the text object aw for around a word using visual mode: Got to normal mode by pressing ESC Type vaw at the beginning of a word This will select the word with white space
We can select a text within an html or xml tag by using visual selection v and text object it . Go to normal mode py pressing ESC Type vit from anywhere within the html or xml section This will visually select all text inside the tag All other text objects can also be used to operate on th...

Page 1 of 1