'Vim regex searching: alter placement of cursor in matched strings
I frequently use the vim regex /\. (note the trailing space) as a quick and (very) dirty way to identify new sentences. I would like the cursor to jump to the space, rather than the period when I type n or N.
Generally, how can I control the placement of the cursor in regex matches?
Solution 1:[1]
You can use the /e flag to position the cursor on the last character of the match:
/\. /e
But you already have "sentence" motions, ( and ) so… why bother?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | romainl |
