kana / vim-submode

Vim plugin: Create your own submodes
http://www.vim.org/scripts/script.php?script_id=2467
217 stars 24 forks source link

map repeat macro command @@ malfunction #22

Open dohsimpson opened 9 years ago

dohsimpson commented 9 years ago

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.