Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do i replay macros in ideavim like regular vim?

Tags:

Record my macro the usual way: qa ..do stuff.. q

Try to replay it 5 times but it only runs once: "5@a

How do I run it multiple times?

Opened bug report: https://youtrack.jetbrains.com/issue/VIM-1402

like image 545
red888 Avatar asked Jan 12 '18 20:01

red888


2 Answers

Update to accepted answer: the issue seems to be fixed.

It doesn't work with the " before macro replay though. However, the macro replay doesn't work in my normal vim with it either

At least this works for me both in vim 7.4 and in Idea 19.2 with IdeaVim 0.54:

qq button pressing... q14@q

Also, a comment in youtrack.jetbrains.com/issue/VIM-1402 shows that it seems to work for others as well.

like image 161
hilipati Avatar answered Sep 22 '22 12:09

hilipati


I don't believe that action is supported by the plugin.

I'm not seeing a unit test in their code for this.

I scanned their bugtracker but didn't see any existing report for this behavior. It would probably be a good idea to open one up.

like image 36
Jonathan.Brink Avatar answered Sep 20 '22 12:09

Jonathan.Brink