space vim配置

wsl ubuntu_space vim配置

1
2
3
4
5
6
7
8
" 共用系统剪切板
set clipboard=unnamedplus

execute 'source' fnamemodify(expand('<sfile>'), ':h').'/config/main.vim'

 
" How to "copy to clipboard" in vim of Bash on Windows?
autocmd TextYankPost * if v:event.operator ==# 'y' | call system('/mnt/c/Windows/System32/clip.exe', @0) | endif