New answers tagged cursor-motions
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.
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.
Top 50 recent answers are included
Related Tags
cursor-motions × 268cursor-movement × 42
key-bindings × 40
visual-mode × 25
normal-mode × 24
cut-copy-paste × 22
object-motions × 20
vimscript × 14
custom-text-object × 14
neovim × 12
vimrc × 9
cursor × 9
search × 7
insert-mode × 7
replace × 7
ex-mode × 5
map-operator × 5
indentation × 4
functions × 4
filetype-tex × 4
repeated-commands × 4
find × 4
count × 4
substitute × 3
highlight × 3