vim copy all to clipboard code example
Example 1: copy from vim to clipboard
Use "+ to copy to the system clipboard
i.e. "+y instead of y
Likewise you can paste from "+ to get text from the system clipboard
i.e. "+p instead of p
Example 2: vim wsl copy to windows system clipboard
" WSL yank support
let s:clip = '/mnt/c/Windows/System32/clip.exe' " change this path according to your mount point
if executable(s:clip)
augroup WSLYank
autocmd!
autocmd TextYankPost * if v:event.operator ==
augroup END
endif