Reactormonk
Reactormonk

Reputation: 21690

How to yank to X clipboard with VSCode Neovim extension?

When using the VSCode Neovim extension I would like the default clipboard to sync directly to X, similar to "+y (as mentioned by How can I get vim yank to clipboard ("*y) working?)
How can I configure Neovim to do it here?

Upvotes: 1

Views: 2624

Answers (1)

Andy
Andy

Reputation: 5414

You can use this mapping to automatically copy visually selected text to the system clipboard by pressing y

Add this to your .vimrc

vnoremap y "+y

Upvotes: 1

Related Questions