Nvim replays macro incorrectly, possible caused by spellcheck? #24
-
|
Hi! I don’t know if this is the correct place to post this, so feel free to delete if it’s not. I have a list of URLs as follows: They are formatted incorrectly in Markdown, and I want to record a macro that would correct them — that is, change parentheses to square brackets and vice versa. For example, In Neovim with the MiniMax configuration (with the most recent commits), I recorded the following macro: However, when I replay the macro, I get an unexpected result: When I record the same macro in Neovim started with the Can anyone recommend how to troubleshoot this situation or has any idea what might be causing the problem? A potential hint is that in one of my previous attempts, the macro replaced parentheses with square brackets, but then threw |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Not sure about the problem with this particular macro, but here is the macro I'd do it with:
|
Beta Was this translation helpful? Give feedback.
-
|
@alikhan-ab, this should now be fixed on the latest |
Beta Was this translation helpful? Give feedback.
The
<80><fd>5is a keycode for<Ignore>special word. It is probably used in%mapping that comes from 'matchit.vim' (plugin bundled and enabled by Neovim itself, not MiniMax).Is
0f(%r]``r[f[%r)``r(a sequence of keys that you pressed? I indeed can reproduce this. After some debugging, it looks like an issue with combination of 'mini.clue' and 'mini.jump'. Disabling either one makes it work as expected.Although enabled 'mini.clue' might lead to problems with macros, I don't remember I encountered this issue. I'll take a closer look.
Anyway, this is not a MiniMax issue and there is a workaround that …