mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 158 forks source link

Vim copy/paste #131

Closed HaraldWeber closed 4 years ago

HaraldWeber commented 5 years ago

Whith this option in .vimrc I can copy/paste between windows and wsl when i start vim from a wsl terminal.

" make yank copy to the global system clipboard (windows)
set clipboard=unnamed

But I cant when I start vim from vim.exe. What is the difference between the two start up methods? Is there a workaround or fix available?

mskyaxl commented 4 years ago

Hi, probably it's too late for an answer. I took over this recently. The difference is that for vim.exe / emacs.exe etc the shell is not started with --login.

I haven't considered this scenario. I will think about it, maybe it makes sense to have -l also for this situation.

mskyaxl commented 4 years ago

but for me it works with both, I have set clipboard^=unnamed,unnamedplus in my vimrc https://github.com/mskyaxl/dotfiles/blob/master/vim/vimrc

mskyaxl commented 4 years ago

closing as no reply was given.