I am making my life easier by mapping shortcuts to long DocBook XML structures in insert mode, for example
map! <unique> <localleader>ct <callout arearefs="">>
is there a way to prepend count to the mapping in insert mode?
Assuming ,
is my <localleader>
, if I want to insert the whole <table>
structure with ,tb
, i could easily insert let's say 20 rows (,tr
) by typing something like:
20,tr
qq
to start recording your macro,q
to stop recording, then20@q
to replay the macro 20 times.:help recording
count
times, but not the whole thing (in this case create a single HTML table withcount
rows in it.