Skip to main content
added 86 characters in body
Source Link
Victor S.
  • 2.7k
  • 3
  • 26
  • 35

Add following to .vimrc:

autocmd TextYankPost * if v:event.operator ==# 'y' | call system('/mnt/c/Windows/System32/clip.exe', @0) | endif

For convenience, if desired, you can add copying by ctrl + c

vmap <C-c> y

Add following to .vimrc:

autocmd TextYankPost * if v:event.operator ==# 'y' | call system('/mnt/c/Windows/System32/clip.exe', @0) | endif

Add following to .vimrc:

autocmd TextYankPost * if v:event.operator ==# 'y' | call system('/mnt/c/Windows/System32/clip.exe', @0) | endif

For convenience, if desired, you can add copying by ctrl + c

vmap <C-c> y
deleted 92 characters in body
Source Link
Victor S.
  • 2.7k
  • 3
  • 26
  • 35

Add following to .vimrc:

autocmd TextYankPost * if v:event.operator ==# 'y' | call system('/mnt/c/Windows/System32/clip.exe', @0) | endif

For convenience, if desired, you can add copying by ctrl + c

vnoremap <C-c> y

Add following to .vimrc:

autocmd TextYankPost * if v:event.operator ==# 'y' | call system('/mnt/c/Windows/System32/clip.exe', @0) | endif

For convenience, if desired, you can add copying by ctrl + c

vnoremap <C-c> y

Add following to .vimrc:

autocmd TextYankPost * if v:event.operator ==# 'y' | call system('/mnt/c/Windows/System32/clip.exe', @0) | endif
Source Link
Victor S.
  • 2.7k
  • 3
  • 26
  • 35

Add following to .vimrc:

autocmd TextYankPost * if v:event.operator ==# 'y' | call system('/mnt/c/Windows/System32/clip.exe', @0) | endif

For convenience, if desired, you can add copying by ctrl + c

vnoremap <C-c> y