17

According to Vim's manual:

A sentence is defined as ending at a '.', '!' or '?' followed by either the end of a line, or by a space or tab.

However ( and ) normal-mode motions seem to have no effect if there's only one space between sentences:

First sentence. Second sentence. 

But ( and ) work as expected if there are multiple spaces between sentences:

First sentence. Second sentence. 

My question is why ( and ) have no effect when sentences are separated with a single space?

1
  • 3
    Add set nocp to your .vimrc Commented Mar 6, 2018 at 8:40

1 Answer 1

8

This behavior is documented in Vim's manual (:help sentence):

If the 'J' flag is present in 'cpoptions', at least two spaces have to follow the punctuation mark; Tabs are not recognized as white space.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.