Created
December 22, 2020 13:01
-
-
Save yavorski/30bc76759cfac9aaceb16c9568bdeae9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" WSL yank support | |
" ============================================================== | |
" change this path according to your mount point | |
let s:clip = '/mnt/c/Windows/System32/clip.exe' | |
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