Closed haolian9 closed 3 years ago
If I'm not mistaken, the cursor moving to the beginning of the selection is the default behavior for operators. For example, see y
or gU
.
You might be able to use `]
and the end of your mapping, which jumps to the end of the previous selection.
Thanks for the `]
solution, it works nicely.
It a shame I did not known about `]
before, sorry for the noise, and thank you for the great plugin.
context:
vmap X <Plug>(Exchange)
viwX
the problem is:
viw
the cursor stays at word endX
the cursor jump to the word startSo I changed map to
vmap X <Plug>(Exchange)E
(appended a E), but sometimes the selection is **==not a word.The cursor jumping is not really matter too much, but when I noticed it, It becoming annoying more and more ...