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.


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.