November 2018
Beginner
330 pages
7h 21m
English
Text objects are an additional type of object in Vim. Text objects allow you to manipulate text within parentheses or quotes, which becomes really useful when working with code. Text objects are only available when combined with other operators like change or delete or a visual mode (see Visual and Select Modes in Chapter 3, Follow the Leader – Plugin Management).
Let's give it a shot. Navigate your cursor to the text between parentheses:

Now, type in di) (delete inside parentheses). This will delete the text inside parentheses:
This works similarly with a change command. Undo the previous change (u) and start in the ...
Read now
Unlock full access