We previously learned about various text objects. In this section we learn how they can help us edit our documents.
Selecting the "inner" Sentence
In the first example we demonstrate selecting the "inner sentence" for a sentence that contains only alphanumeric characters. The cursor starts at the middle of the Sentence, and the selection spans that entire sentence.
In the second example, we repeat the selection for a sentence that contains non-alphanumeric
characters. The Sentence text object is defined to accept either word
or WORD
text objects.
Selecting "around" the Sentence
In the first example we demonstrate selecting "around" a Sentence that contains only alphanumeric characters.
In the second example, we repeat the Selection for a Sentence that contains non-alphanumeric
characters. As noted earlier, the Sentence text object accepts both word
and WORD
text objects
within the Sentence.