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

Completion from past vim inserts (or cache file) #2931

Closed
kovasap opened this issue Mar 1, 2021 · 4 comments
Closed

Completion from past vim inserts (or cache file) #2931

kovasap opened this issue Mar 1, 2021 · 4 comments

Comments

@kovasap
Copy link

kovasap commented Mar 1, 2021

Anyone know of a way to get vim to complete from past "inserts"? For example, if i go into insert mode, make a change, then go into insert mode again, is there a way to complete if I want to do the exact same insert again? I know '.' repeats, but I often want to repeat the same insert i did a couple other inserts ago.

I think if I could get coc.nvim to complete from a cache file, that would be enough functionality to make this work. I could then have vim write the contents of each insert to that file (i think), and my functionality would work as expected.

Thanks!

(this is a duplicate of neoclide/coc-sources#25)

@chemzqm
Copy link
Member

chemzqm commented Mar 2, 2021

My suggestion is use vim's register.

@chemzqm chemzqm closed this as completed Mar 2, 2021
@kovasap
Copy link
Author

kovasap commented Mar 2, 2021 via email

@kovasap
Copy link
Author

kovasap commented Mar 6, 2021

@chemzqm following up on this - can you describe a bit more what you mean?

@chemzqm
Copy link
Member

chemzqm commented Mar 6, 2021

Use git.undoTrunk command from coc-git is more efficient for that purpose.

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