Reputation: 19430
I've recorded a macro in vim by pressing q1 in normal mode and then did a few movement commands and wrote text to the document using a to enter insert mode. I then pressed ESC to get back to normal mode and finished the macro recording with q.
Now I want to run the recorded macro by pressing ALT GR+q for the @
sign (I'm using a german keyboard layout) and then 1 because I saved the macro to the 1-register. But after typing the @
in normal mode, vim shows me :wincmd w
in the status line and doesn't run the macro after pressing 1.
Am I missing something? Or do vim macros work different on german keyboard layouts?
Edit:
:registers 1
--- Registers ---
"1 A<br ><80>kb/>^[
Upvotes: 2
Views: 1421
Reputation: 1164
The described behavior shows that @
was mapped by a plugin/script that Vim loads (mapping available with :verbose map @
). One solution would be to capture the original @
functionality in another key combo:
:noremap <leader>q @
.. and use that instead of @
. The other solution - to remove the original mapping, either directly (script, vimrc) or by using the configuration options of the "offending" plugin.
Upvotes: 3