I want to write a function that can map a key to another function.
But I was unable to insert variables into the command map
:
map a:key :! a:action
(which a:key
may be <F9>
, <C-F9>
etc.)
How do I achieve this in vim command statements?
source
to share