It would enter submode and works find as long as I stay in submode. But when I exit submode and try to use @@ again. I would get something like this inserted at the beginning of my buffer: _ubmode-enter:repeat_excmd). And I would be put into insert mode.
I tried to map
@@
to repeat with@
only:call submode#enter_with('repeat_ex_cmd', 'n', '', '@@', '@@') call submode#leave_with('repeat_ex_cmd', 'n', '', '')
call submode#map('repeat_ex_cmd', 'n', '', '@', '@@')
It would enter submode and works find as long as I stay in submode. But when I exit submode and try to use
@@
again. I would get something like this inserted at the beginning of my buffer: _ubmode-enter:repeat_excmd). And I would be put into insert mode.