Skip to main content

New answers tagged

2 votes

How do I move to the last character in a sentence?

I believe the comment from @superjer deserves to be promoted to an answer: Use )gE It uses ) to jump to the beginning of the next sentence, and then uses gE to move backward to the end of WORD.
Cnly's user avatar
  • 141
2 votes
Accepted

Part of a mapping is a text object and I wish to pass it to a function. How to do that?

To write your own operator, see :help map-operator and in particular the g@ operator and operatorfunc option. See also the Learn Vimscript the Hard Way chapters on custom operators.
D. Ben Knoble's user avatar
  • 27.2k

Top 50 recent answers are included