Discussion:
[Help-bash] Create newline in here-document mode
Pierre Gaston
2018-05-21 18:39:42 UTC
Permalink
C-v C-j seems to work (C-v to "quote" ie to insert the next char
literally C-j is newline)
You mean like emacs’ C-q? Is there also something like C-o for opening a
line after point?
Anyway thank you you quickly answered my question :D
Correct, if you don't have flow control enable (C-s/C-q) then C-q is also
working.
I don't think there is something like emacs C-o
Greg Wooledge
2018-05-21 16:56:59 UTC
Permalink
C-v C-j seems to work (C-v to "quote" ie to insert the next char
literally C-j is newline)
You mean like emacs’ C-q? Is there also something like C-o for opening a
line after point?
Ctrl-V is the "literal next" character at the terminal driver level
(cf. stty -a | grep lnext). You can use it to insert literal carriage
returns and other control characters when editing files in vi, or when
providing input via the canonical terminal driver mode (e.g. cat > file).
Loading...