After :
, you're in command-line mode. Like in insert mode, you can insert register contents at the cursor position by pressing Ctrl + R, followed by the register name. So, if you simply yanked the /home/redhat
, that would be "
for the default register; for the system clipboard, use +
instead.
In the command-line, you can also press Ctrl + F to switch to the command-line window, in which you can use all Vim commands, like in any other buffer, so you could also paste via the usual p
/ P
from normal mode.
Learn how to look up commands and navigate the built-in :help
; it is comprehensive and offers many tips. You won't learn Vim as fast as other editors, but if you commit to continuous learning, it'll prove a very powerful and efficient editor. The help topics for the commands mentioned here are :help c_CTRL-R
and :help c_CTRL-F
.