chromium-vim icon indicating copy to clipboard operation
chromium-vim copied to clipboard

Execute multiple commands at once

Open GilDev opened this issue 8 years ago • 2 comments

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!

GilDev avatar Jul 27 '16 23:07 GilDev

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.

glspdotnet avatar Jul 11 '17 16:07 glspdotnet

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.

mrap avatar Feb 04 '19 11:02 mrap