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

Repeating imap commands #21

Closed
nilbus opened this issue Feb 8, 2014 · 1 comment
Closed

Repeating imap commands #21

nilbus opened this issue Feb 8, 2014 · 1 comment

Comments

@nilbus
Copy link

nilbus commented Feb 8, 2014

@tpope, I noticed that none of the plugins I've found that use vim-repeat successfully repeat imap commands. For example, your vim-surround plugin has

imap    <C-S> <Plug>Isurround

but Isurround does not call repeat#set. Indeed is not repeatable using ..

I'm hoping to be able to use vim-repeat to fix repeat behavior for jiangmiao/auto-pairs#3, but using repeat#set in the suggested manner seemed to have no effect.

Should vim-repeat be able to support imap commands?

@tpope
Copy link
Owner

tpope commented Feb 24, 2014

You'd have to call repeat#set with the entirety of the insertion, which I don't think is accessible. I think your best bet would be :undojoin, but it can be a bit fiddly.

@tpope tpope closed this as completed Feb 24, 2014
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