vimtricks.wiki Concise Vim tricks, one at a time.

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 sentence
  • d) deletes from cursor to end of the sentence
  • das deletes around a sentence (including trailing whitespace)
  • dis deletes the inner sentence

Next

How do you yank a single word into a named register?