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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With