vim-express icon indicating copy to clipboard operation
vim-express copied to clipboard

define v:count for express mappings

Open DJMcMayhem opened this issue 9 years ago • 1 comments

I just found this plugin, and it looks really nice! I tried to do this mapping:

"duplicate function
MapExpress <leader>d repeat(v:val, v:count1)

But this just deletes the motion, which I suppose makes sense. Is there a way to do this, or would it require rewriting the plugin to define v:count?

DJMcMayhem avatar Jul 15 '16 23:07 DJMcMayhem

That's a great idea! I don't think the plugin can support this at the moment.

I've been playing around with it, and so far it looks like it's gonna be pretty complicated to implement, just because of all the crazy stuff the plugin is already doing to support custom mappings (for example, :execute-ing the creation of the map to support a variable left-hand side).

I'm gonna continue hacking away at it to see what I can do. Thanks for the suggestion!

tommcdo avatar Jul 18 '16 02:07 tommcdo