Skip to content
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

keep cursor at positon before operation #52

Closed
astier opened this issue Feb 13, 2023 · 2 comments
Closed

keep cursor at positon before operation #52

astier opened this issue Feb 13, 2023 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@astier
Copy link

astier commented Feb 13, 2023

Hi. I switched to this plugin from vim-subversive. So far I am really enjoying it. I especially like the exchange-operator and that I can pass the desired motion to the operation as an option. The only thing I am missing from vim-subversive is the subversivePreserveCursorPosition option which keeps the cursor at the position before the operation. For example if I initialize the exchange-operation with sxiw the cursor jumps to the beginning of the word. This happens with all operations. Would it be possible to prevent the cursor from changing its position? Thank you.

@gbprod
Copy link
Owner

gbprod commented Feb 14, 2023

Yep, I can do something for that!
I'm actually working on a refactoring, I'll work on that after ;)

@gbprod
Copy link
Owner

gbprod commented Oct 5, 2023

I've added some options for that @astier ;)

@gbprod gbprod closed this as completed Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants