Imagine you want to quote the word below. If |
is the cursor position you can easily quote the word with cw""<Esc>P
from Normal mode.
|below
I want to achieve the same behaviour in Command-line mode. My question is how can I say to the Command-line mode that I want to type an <Esc>
. I tried :norm cw""<Esc>P
and some other variations but I just get ""<Esc>P
instead of "below"
.
Still related to this I would like to know how can I make Command-line mode type Ctrl commands. For example I could quote the aforementioned word with cw"<C-r>""<Esc>
instead. But then I would need Command-line to type <C-r>
for me. How can I do this?
<C-x><C-e>
in readline to edit the command-line in$EDITOR
, you have<C-f>
in Vim to open the command-line window. See:help cmdline-window
.