Ask coding questions

← Back to all posts
Any chance to copy to clipboard using vim keys?
misterybodon (1)

Any chance to copy to clipboard using vim keys?
I can't get it to work.

Coder100 (18920)

Yess i found it!

Ctrl + INS

MatthewXia (17)

Position the cursor where you want to begin cutting.
Press v to select characters (or uppercase V to select whole lines).
Move the cursor to the end of what you want to cut.
Press d to cut (or y to copy).
Move to where you would like to paste.
Press P to paste before the cursor, or p to paste after.

misterybodon (1)

That's not copied to the system clipboard. I am trying to copy a line to a different tab in the browser. @MatthewXia

MatthewXia (17)

@misterybodon oh um... lemme look into it

MatthewXia (17)

@misterybodon To copy text from Vim to the system clipboard, you can select the text using visual mode, then press " y to copy it to the system clipboard. Conversely, use " p to paste text from the system clipboard into Vim. This enables support for Ctrl C , Ctrl X , Ctrl V like notepad in Windows.