-
-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restore cursor position after surround-change operation #2
Comments
As the name implies, the "position before the latest jump" marker only applies to jumps like pageup/pagedown and searching. Surrounding isn't a jump. You can save to this marker explicitly though with `m`` if you want to avoid using a temporary marker. SIde note: I just lost all respect for markdown trying to actually typeset two adjacent backticks as inline code. |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I use the surround-change operation (not sure if that is the official name) to switch between single and double quotes for strings in my Ruby program.
While trying to make shortcuts for the aforementioned operation, I noticed that the cursor moves to the beginning of the operand text after the operation. I tried to solve this by restoring Vim's default "position before the latest jump" marker (see :help '') as suggested by a person named "elik" in the #vim IRC channel:
But this did not work. Instead, I had to use an explicit temporary (I hope) marker:
Perhaps surround.vim is interfering with this default Vim marker?
Thanks for your consideration.
The text was updated successfully, but these errors were encountered: