News for hackers. Stuff that matters.
Re:Switching from Vim to Intellij by sullyj3 on Thursday November 05, 2020 @09:43AM (#24998651)
I've found it to be a colossal pain in the ass in WSL, since the emulated linux clipboard isn't synced with the windows clipboard. I have to :wq, cat the file, and ctrl-ins to copy.
Re:Switching from Vim to Intellij by maple3142 on Thursday November 05, 2020 @11:46PM (#25004997)
I used this(https://www.github.com/maple3142/dotfiles/tree/master/.vimrc) to let you yank directly into Windows's clipboard. It was copied from a stackoverflow answer, but I don't remember where is it.
Re:Switching from Vim to Intellij by nickjj on Thursday November 05, 2020 @06:15PM (#25003164)
If you set up VcXsrv (an X-server) then your clipboard will be shared between WSL and Windows and Vim will work as long as you have +clipboard support in your copy of Vim without doing anything extra.

I made a video tutorial around setting it up at: https://nickjanetakis.com/blog/getting-copy-paste-to-work-in...

Re:Switching from Vim to Intellij by aidenn0 on Thursday November 05, 2020 @01:39PM (#25000702)
That's not vim specific though, right? If you ran e.g. vscode inside WSL you would have the exact same problem?
Re:Switching from Vim to Intellij by sullyj3 on Friday November 06, 2020 @12:35AM (#25005207)
I'm not sure about the specific instance of vscode. Since it's a gui app, I don't think you can run it inside of wsl. You can use a plugin to connect to wsl, but I don't think that's quite the same thing, and I wouldn't expect it would allow clipboard sharing.

The general point is right though. This is an issue with any terminal program that either doesn't allow selection of text, or has a system for selection of text that's separate to that of the terminal emulator.

Re:Switching from Vim to Intellij by Congeec on Thursday November 05, 2020 @05:15PM (#25002668)
I used a tool called lamonade that let you access the clipboard of Windows via a socket server.

https://github.com/lemonade-command/lemonade