We previously learned about various text objects. In this section we learn how they can help us navigate through our documents by quickly stepping over paragraphs.
To demonstrate, we will start with this buffer:
Initial Conditions
This·is·a·line·with·sample·text.
This·line·has·other·types/kinds·of·words·(and·WORDS)!
This·is·a·new·paragraph.·This·is·another·sentence.
And·this·is·another·line.
NORMAL
Top
1:1
As a first step, lets move one paragraph formward using }. Since the cursor started on the first character, the first step goes over that paragraph, to the start of the next paragraph. Since a paragraph starts with each new line, the cursor lands on that line.
Move the cursor
}
This·is·a·line·with·sample·text.
This·line·has·other·types/kinds·of·words·(and·WORDS)!
This·is·a·new·paragraph.·This·is·another·sentence.
And·this·is·another·line.
NORMAL
50%
3:1
The next step goes to the end of the following paragraph.
Move the cursor (again)
}
This·is·a·line·with·sample·text.
This·line·has·other·types/kinds·of·words·(and·WORDS)!
This·is·a·new·paragraph.·This·is·another·sentence.
And·this·is·another·line.
NORMAL
83%
5:25
Now, let's step back one paragraph using {
Move the cursor back
{
This·is·a·line·with·sample·text.
This·line·has·other·types/kinds·of·words·(and·WORDS)!
This·is·a·new·paragraph.·This·is·another·sentence.
And·this·is·another·line.
NORMAL
50%
3:1
As with other motions, { and } also accept a count, so in larger documents one can jump multiple paragraphs in a single step.