[mini.surround] Preserve cursor position #2050
-
Contributing guidelines
Module(s)mini.surround QuestionHello! When using From my understanding, this is the default behavior of the I would prefer that the cursor stays at the same position, regardless of the motion. I don't understand how to approach this problem - should I use markers, should I save the cursor position before Any guidance would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi!
For reference: this is intended. #1409 contains links to more details.
My honest suggestion would be to just get used to it, because this is consistent with the built-in behavior (like with As to pointers... All of them will be hacky and potentially not reliable in the long term and/or quite convoluted (because Vim's operator implementation is). You can indeed try to copy the 'mini.surround' approach:
Hope this helps. |
Beta Was this translation helpful? Give feedback.

Hi!
For reference: this is intended. #1409 contains links to more details.
My honest suggestion would be to just get used to it, because this is consistent with the built-in behavior (like with
yiw,guiwor any built-in operator). If the latter will change in the future, so willsaoperator.As to pointers... All of them will be hacky and potentially not reliable in…