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

How do I jump backward to the previous sentence?

Answer

(

Explanation

The ( motion moves the cursor backward to the start of the current or previous sentence. It is the counterpart to ) which moves forward.

How it works

  • ( jumps to the beginning of the current sentence, or the previous one if already at the start
  • Sentences end with ., !, or ? followed by whitespace
  • A count like 3( moves back three sentences

Example

First sentence. Second sentence. Third sentence.

With the cursor on Third, pressing ( moves to Second. Pressing ( again moves to First.

Tips

  • ) moves forward by sentence
  • dis deletes the inner sentence
  • das deletes around the sentence (including trailing space)
  • vis selects the current sentence

Next

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