Is there a way to select / yank text from the vim command line? I know that you can put text (with ctrl+r) into the command line, but I have not yet found a way to yank from it.

1 Answer 1


You can open the command-line window with q: and visually select/yank like you would do in normal mode. If you are in the middle of writing a command, <C-f> opens the command-line window with your current command.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .