This Vim plug-in adds mappings in WSL (Windows Subsystem for Linux) to write and read on the Microsoft Windows clipboard (c):
-
to copy (yank) to the Windows clipboard by
cy(followed by a text object),cY(yank from cursor to end of line) andcyy(yank the whole line) in normal modeYin visual mode
-
to paste from the Windows clipboard by
cpandcP(copy to the line before or after the cursor line) in normal modePin visual mode
Relies on vim-repeat for repeatability by the . command.
The repository win-bash-xclip-xsel contributes a small Shell script to make xclip and xsel in WSL (or Git Bash) read and write on the Microsoft Windows clipboard instead of the Linux clipboard.