vim-surround icon indicating copy to clipboard operation
vim-surround copied to clipboard

Restore cursor position?

Open unphased opened this issue 2 years ago • 1 comments

I typically use this most heavily to toggle quote types as the content of a string evolves.

E.g. cs'"

The only pain point with this is that the cursor gets brought to the front of the whole string, when keeping it in its original place would be preferred because experience is showing me that 90% of the time I want to go move right back to where i was, and sometimes this is a significant distance.

I wish there was at least an action to smack it back to where it was prior to the action. Could we at least add that if we cannot make it stay put in the same spot? I would even be open to adding it to the jumplist so i can use that.

unphased avatar Nov 21 '23 11:11 unphased

This would be awesome. Same use case for me

ic-768 avatar Jul 08 '24 11:07 ic-768