Skip to content

Comment on Pasting in command line Vim doesn't have to suckparent

Comments

How to paste in vim commandline after :

    <ESC>
    (normal mode)
    q:
    (fully vim editable window of :command line history)
    (edit one of the command lines, yank and put all you like)
    (or edit the new blank command line at the bottom)
    <ESC><ENTER>
    (to execute the current line, or)
    :q
    (to quit without executing)
    (normal mode)
Notice the symmetry of q: to get in, and :q to get out (if you don't execute).

q/ and q? to edit and execute search history.

[edit formatting]

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.