Vim macros

I'm using the IdeaVim plugin and having a difficult time recording and playing back vim macros.  The Rider auto-typing support seems to interfere when trying to replay a recorded vim macro (recorded with the 'q' key).  Does anyone know how to fix this?

3
2 comments

I'm having this problem 9 years later in 2026.

Explanation:

I put this in register q:
0I    const FString [ESC]wy$Pa [ESC]bgUWWi= FString(TEXT("[ESC]A"));[ESC]+


When i run it once…

user_exited_activity
…becomes
const FString USER_EXITED_ACTIVITY = FString(TEXT("user_exited_activity"));

This is the correct behavior.

But when i run 2@q…
user_requested_activity
user_page_navigation

…becomes

const FString USER_REQUESTED_ACTIVITY  Srng(TEXT("user_requested_activity"));
const FString USER_PAGE_NAVIGATION = FString(TEXT("user_page_navigation"));

As you can see it messed up the first FString

If I do more, like 10@q, it gets progressively more messed up with every macro. 

I think this has something to do with the autocomplete box popping up and interfering.

0

Thank you for the report. Working with macros and autocompletion in IdeaVIM is a known issue: https://youtrack.jetbrains.com/issue/VIM-2712.
Please vote for it and follow for progress updates. Unfortunately, there are not a lot of votes for it, and we cannot share any concrete plans for the fix at this time.

Sorry for the inconvenience. 

0

Please sign in to leave a comment.