chromium-vim
chromium-vim copied to clipboard
Execute multiple commands at once
Hi, sorry if this is a stupid question. I'm trying to do something like this:
map n nextSearchResult | centerMatchH
How to execute those commands altogether? Or how to create a code block which could execute those commands?
Thanks!
I believe the proper way to do this would be:
map n :execute nzz<CR>
However, :execute
doesn't currently seem to work for a lot of commands, unfortunately.
I was able to do call multiple commands in a code block.
closeAllOtherTabs() -> {{
Mappings.actions.closeTabsToRight()
Mappings.actions.closeTabsToLeft()
}}
map co :call closeAllOtherTabs<CR>
Warning: I don't think this approach supported.