I'm struggling with setting up some mappings for Vim. I want to have a mapping to insert a line of text.
I've achieved this:
nnoremap åfox oThe quick brown fox jumps over the lazy dog<Esc>]<Space>j
It works fine, except for the last part.
]<Space>
is mapped to create a new line without entering insert mode, and then the j goes one line down. This mapping comes from the vim unimpaired plugin.
The command ]<Space>
works fine in the normal vim editor, when I do all step by step.
When I do it as a macro, I get problems when inserting the bracket after exiting insert mode, so I have to do the same command again.
Here is how the macro is recorded. Note that I press the exact same combination twice, (ALT + 9), which is ]
on my Swedish keyboard.
Are there any safer way to achieve this?