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

Preserve cursor position for yank #22

Open
Praful opened this issue Nov 30, 2019 · 1 comment
Open

Preserve cursor position for yank #22

Praful opened this issue Nov 30, 2019 · 1 comment

Comments

@Praful
Copy link

Praful commented Nov 30, 2019

I'm not sure if this plugin is still maintained.

When typing yai, the cursor moves to the beginning of the selection.

When typing vai, the cursor moves to the end of the selection.

There's some logic for moving when vai is used because you could continue selecting downwards. However, what is the rationale for moving the cursor when yai is typed? One possible justification is that if you're in a method and yank it, moving to the top would let you paste the recently yanked text ie to duplicate the method.

It would be nice to have the choice of moving the cursor or not.

@haolian9
Copy link

haolian9 commented Jul 3, 2021

it seems yanking on all text object have this behavior: after yanking, the cursor goes to the beginning of the selection.

nonthless, i think `] could mitigate this pain point somehow.

(a while ago, I was wanting similar behavior in vim-exchange )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants