A.J.Mechelynck wrote:
Meino Christian Cramer wrote:
Hi,
for what keyword I have to look in the online-help to find a hint
how to copy any text from a buffer as any part of a command currently
being edited in the commandline ?
kind regards,
mcc
If by "buffer" you mean what the Vim docs call a "register", see
":help c_CTRL-R".
If you mean part of a file being edited, IMHO the easiest way is to
yank it beforehand into a register, though in some cases you can use
the expression register (Ctrl-R =) with e.g. expressions such as
getline(".")
Also, if you merely want the bit of text currently under the cursor, see
:help expand() (ie. expand("<cword>") and expand("<cWORD>") ).
Regards,
Chip Campbell