WSL上のVimのyankをWindowsと共有する.vimrc" WSL clipboard if !empty($WSL_DISTRO_NAME) 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 endif 参考https://superuser.com/questions/1291425/windows-subsystem-linux-make-vim-use-the-clipboard |
|