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

repetition clobbers registers #293

Open
dmwit opened this issue Apr 13, 2022 · 0 comments
Open

repetition clobbers registers #293

dmwit opened this issue Apr 13, 2022 · 0 comments
Labels

Comments

@dmwit
Copy link

dmwit commented Apr 13, 2022

When I use . to repeat a deletion using a vim-sneak motion, it clobbers the most-recently used register, even when that register was not used for the action being repeated. Here's a short, crisp test: open a file and insert the text

good_bad_

and position your cursor at the start of the line. Then press the following keys (or your setup's equivalents, I guess):

"ayf_df_."ap

In other words: yank good_ into register a, delete to the first _ (without writing to any register), repeat, then dump the current contents of a. I expect a to still have the content it had from the very first yank, namely, good_; but instead I observe that it contains bad_.

@justinmk justinmk added the bug label Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants