I have created many menu commands in VIM.
. repeats the last command in normal mode.
@: repeats the last command from the command line
Is there a way to repeat the last command called from the vim menu ?
Update:
Example menu command:
an 98.80.00 &MyMenu.Test\ :call <SID>Test("%")<CR>
If I use this menu command that I created, how can I repeat it again (repeat the last used menu command)?
In the above case, it would be :call <SID>Test("%")<CR>
I can not find these commands in the command line history.
@: and :<UP> does not work
Does anyone know where Vim functions as function calls / menu commands?
Update2
Kent suggested constructing a function around the specified command:
an 98.80.00 &MyMenu.Test\ :call SubExe('call <SID>Test("%")')<CR> function! SubExe(argument) let g:lastcommand = a:argument exe g:lastcommand endfun
It seems to work, the downside is that I have to change all current commands;)
Reman source share