chamindra / marvim

MARVIM - MAcro Repository for VIM "Give your most complex macros a name and store it for future recall and use"
GNU General Public License v2.0
34 stars 8 forks source link

Call marvim commands as command line command #17

Open himat opened 2 years ago

himat commented 2 years ago

I see in the docs that I can map a key to call the find and store actions, but I actually don't want a hotkey to trigger this plugin, and instead I want use a commandline command, i.e. something like :Macrofind from Normal mode which would call the marvim find action.

What's the best way to do this in my .vimrc?

It looks like you actually call two commands internally https://github.com/chamindra/marvim/blob/a146011e859d166b68edc64341b42729d8b5c5cf/plugin/marvim.vim#L62 so would I also need to call both commands if I made a custom mapping? Is there an easier way to define a custom mapping where I can just call one internal marvim command?