Skip to content
Discussion options

You must be logged in to vote

Hi!

When using saiw" to add double-quotes, the cursor is moved to the start of the word, as show below:

For reference: this is intended. #1409 contains links to more details.

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 Minisurround.add(), or...?

My honest suggestion would be to just get used to it, because this is consistent with the built-in behavior (like with yiw, guiw or any built-in operator). If the latter will change in the future, so will sa operator.

As to pointers... All of them will be hacky and potentially not reliable in…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@farooqameen
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.surround
2 participants