Skip to content

Instantly share code, notes, and snippets.

@libdx
Created January 7, 2022 18:28
Show Gist options
  • Save libdx/79bf61179f86b58a7674e85d58924483 to your computer and use it in GitHub Desktop.
Save libdx/79bf61179f86b58a7674e85d58924483 to your computer and use it in GitHub Desktop.
" 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment