Yanor.net/
Wiki
Blog
GitHub
Sandbox
開始行:
* WSL上のVimのyankをWindowsと共有する [#i887c6d4]
*** .vimrc [#u6c6e0cd]
" 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'...
augroup END
endif
endif
** 参考 [#ae8b43a6]
https://superuser.com/questions/1291425/windows-subsystem...
終了行:
* WSL上のVimのyankをWindowsと共有する [#i887c6d4]
*** .vimrc [#u6c6e0cd]
" 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'...
augroup END
endif
endif
** 参考 [#ae8b43a6]
https://superuser.com/questions/1291425/windows-subsystem...
ページ名: