How do I jump forward by sentence in Vim?
Answer
)
Explanation
The ) motion moves the cursor to the beginning of the next sentence. Vim defines a sentence as ending with ., !, or ? followed by whitespace or end of line.
How it works
)jumps forward to the start of the next sentence- Sentence boundaries are periods, exclamation marks, or question marks followed by a space or newline
- Works well in prose text; less predictable in code
Example
This is the first sentence. This is the second. And the third.
With the cursor on T of This is the first, pressing ) jumps to T of This is the second.
Tips
(jumps backward to the start of the current/previous sentenced)deletes from cursor to end of the sentencedasdeletes around a sentence (including trailing whitespace)disdeletes the inner sentence