I'm trying to create a mapping to create a mapping such that pressing <C-return>
presents me with :nnoremap <return> :
to which I can then add a custom command. The following does not work because <return>
is replaced by the return key.
:nnoremap <c-return> :nnoremap <return> :
I thought I could escape <return>
as \<return>
, but this does not seem to be working. How do I escape (or otherwise prevent nnoremap from expanding) <return>
in the above statement?