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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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