My macros are getting a bit out of control and I would like to organize them into mappings.
Let's say I have a Vim macro stored in the register e
. I open my .vimrc
find the content of the macro by printing the content of the register "ep
and try to map it under <leader>ne
as follows nnoremap <leader>ne {content of the register}
.
This does not seem to work. How should one proceed?
EDIT: I would like the mapping to be independent of the register e
, so that e
can change, but not the mapping.