Answers for "copy from vim to clipboard"

0

vim wsl copy to windows system clipboard

# if you want to paste from windows clipboard into vim
# while in Insert Mode press Shift+Ins and confirm paste

# to make vim yank to windows clipboard 
# put the following in your .vimrc
# *you don't need to yank to a specific register
" 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 ==# 'y' | call system(s:clip, @0) | endif
    augroup END
endif
Posted by: Guest on October-13-2020
0

asciidoc copy to clipboard

= My document
Author
:nocopyblocks:
Posted by: Guest on December-29-2020

Code answers related to "copy from vim to clipboard"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language