I am making a complex mapping that requires me to insert angle brackets (<
and >
) but I do not know how to escape them so Vim does not interpret them as special key-codes.
It seems like escaping them are not required if you do a simple mapping like:
nnoremap <leader>x yi<pppp
But my mapping looks more like this:
nnoremap <leader>x a<?<<cr>lyi</<<cr>a/<c-r>"><esc>
And I become really confused about all angle brackets. I also think that Vim might become confused.
Is there a way to escape angle brackets when making mappings in Vim?