Fork me on GitHub
#conjure
<
2021-02-03
>
dharrigan20:02:29

Has anyone got vim repeat by tpope working with the mappings?

dharrigan20:02:48

I would love to be able to do ,ee to eval a form, then move to a new form and simply do . to repeat the eval.

dharrigan20:02:56

I think it can be done

dharrigan20:02:24

needs this setting silent! call repeat#set("\<Plug>MyWonderfulMap", v:count) with the Plug being replace with the suitable command

dharrigan20:02:50

Hmm, I don't think Conjure exposes <Plug>commands?

dharrigan21:02:42

So, you can do this silent! call repeat#set(",ee", v:count)

dharrigan21:02:01

and if you type in ,ee then move to another form and simply press ., it will invoke ,ee for you!

dharrigan21:02:21

already 66% more efficient!

dharrigan21:02:41

You can more... silent! call repeat#set(",ece", v:count)

dharrigan21:02:44

and so on...

dharrigan21:02:38

Hey @olical how about putting these into the build of Conjure so they are mapped automatically to repeat? Some other plugins do that on behalf of the user 🙂

dharrigan21:02:52

The following plugins support repeat.vim:...

Olical21:02:07

Ohhh nice!

Olical21:02:28

I didn't realise there was integration work for it, but I'm happy to since it won't be too hard from my perspective (I think?)

dharrigan21:02:42

I'll raise an issue on github

Olical21:02:49

That'll be great! Thank you!

Olical21:02:55

Hopefully I get some OSS time this weekend

dharrigan21:02:16

silent! call repeat#set(",ee", v:count)
silent! call repeat#set(",ece", v:count)
silent! call repeat#set(",er", v:count)
silent! call repeat#set(",ecr", v:count)
silent! call repeat#set(",ew", v:count)
silent! call repeat#set(",ewc", v:count)
silent! call repeat#set(",eb", v:count)
silent! call repeat#set(",gd", v:count)

Olical21:02:32

Nice! I'll hook that up for you automatically asap

dharrigan21:02:42

w00t. no hurry