In vim
, the numerical Enter ⎆ key behaves differently from the carriage Return ⏎ key.
Is there any practical reason why the numerical Enter ⎆ behaves like that?
Can the numerical Enter ⎆ be made to behave like the carriage Return ⏎ key (including in combination with Shift ⇧ and if so, how?
inoremap <kEnter> <enter>
should work. Check:help keycodes
<Enter>
and<Return>
evaluate to<CR>
, so I'm not sure how they could be different. Can you please give us a bit more info?<c-v><enter>
gives^M
while<c-v><num enter>
gives^[OM
but I don't see any difference in their behavior... I needed you might want to create mappings using<c-v><key>
to get the behavior you want. For example something likennoremap ^[OM ^[
termcap
/terminfo
entry. See the discussion here for suggestions.