While using WSL/Bash for Windows I want to be able to use
p the same way they always work in vim, but connecting to the system clipboard shared by all apps, not to vim's internal clipboard... I already have ditto to manage clipboard history.
It seems that Vim already has a built in option to synchronize the copy/paste buffer with the system clipboard... Yet the problem when running WSL is that you actually need to use
/mnt/c/Windows/System32/clip.exe to access the clipboard... So even though I would like to be able to use:
It doesn't seem to have WSL support yet.
I understand the neovim does have this as an option, but I don't really want to experiment with neovim right now...
For now, the closest thing to a workaround that I've found is:
nnoremap <silent> <leader>y :call system('/mnt/c/Windows/System32/clip.exe', @0)<CR>
vnoremap <silent> <leader>y :call system('/mnt/c/Windows/System32/clip.exe', @0)<CR>
But this is a really horrible solution in my opinion... It makes copying a two-steps process...
Of course I can do some copy and paste with the mouse/shift+ins, yet I think there must be a way to get this synchronization to work properly in Vim.