Some terminals send <NL>
when <C-Enter>
is pressed. This is equivalent to sending <C-J>
.
To find out what your terminal does with <Shift-Enter>
, <Ctrl-Enter>
and <Enter>
, go to your terminal, type <Ctrl-V>
(similar to sykora's suggestion for vim), and type in the sequence you're interested in.
Using gnome-terminal, I get the following:
<Enter> : ^M
<S-Enter> : ^M
<C-Enter> : <NL>
Looking at man ascii
indicates that ^M
gives the <CR>
sequence.
The answer is that it depends on the terminal, and there's an easy way to check.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…