Sentences are the next higher-order logical chunk of text that we work with, and Neovim is able to identify those as well. In Neovim, a sentence is defined as:
- sentence
- a sequence of words and WORDs that end with a ".", "!", or '?', followed by either a space, tab, or EOL.
To help demonstrate, let's visually-select a sentence in the following text:
Initial Condition
that·it·has·come,·let·me·leave.·For·a·long·time,·I've·been·waiting·for
this·hour;·for·a·long·time,·I've·been·Vasudeva·the·ferryman.·Now·it's
enough.·Farewell,·but,·farewell,·river,·farewell,·Siddhartha!"
Siddhartha·made·a·deep·bow·before·him·who·bid·his·farewell.
"I've·known·it,"·he·said·quietly.·"You'll·go·into·the·forests?"
"I'm·going·into·the·forests,·I'm·going·into·the·oneness,"·spoke
NORMAL
20%
2:1
Select Sentence
vis
that·it·has·come,·let·me·leave.·For·a·long·time,·I've·been·waiting·for
this·hour;·for·a·long·time,·I've·been·Vasudeva·the·ferryman.·Now·it's
enough.·Farewell,·but,·farewell,·river,·farewell,·Siddhartha!"
Siddhartha·made·a·deep·bow·before·him·who·bid·his·farewell.
"I've·known·it,"·he·said·quietly.·"You'll·go·into·the·forests?"
"I'm·going·into·the·forests,·I'm·going·into·the·oneness,"·spoke
VISUAL
20%
2:60
Note that the cursor is initially positioned in the middle of the sentence, then the selected text extends both back to the start of the sentence, as well as forward to the end of the sentence. The content of the sentence additionally consists of both types of word.