Timeline for How to copy/paste from Vim in WSL
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 12 at 20:39 | answer | added | ms-afk | timeline score: 2 | |
Jan 27 at 15:23 | answer | added | Ivan Danilov | timeline score: 0 | |
May 13, 2023 at 2:46 | comment | added | NeilG |
I run vim inside tmux . Tmux has a "vim" mode copy paste system where you can use vim movement commands to copy. There are config options to tmux that allow the use of clip.exe which is available under WSL to send to the clipboard. It's not perfect and actual vim clipboard is not connected, you have to use the tmux system, but you also get the advantage of using the tmux terminal multiplexor which gives you a consistent reliable environment everywhere. If you're interested request in a comment and I'll post an answer describing the setup.
|
|
Apr 5, 2022 at 12:11 | comment | added | 71GA | @nomen Check my answer. I think it is the best one so far. | |
Apr 5, 2022 at 12:07 | answer | added | 71GA | timeline score: 1 | |
Jul 9, 2021 at 13:35 | answer | added | fencemaker | timeline score: 44 | |
May 24, 2020 at 0:57 | answer | added | LeOn - Han Li | timeline score: 1 | |
May 18, 2020 at 8:03 | comment | added | Andrey Kaipov | I'm using Neovim and went with the instructions on their FAQ at github.com/neovim/neovim/wiki/…. Otherwise, I think How to “copy to clipboard” in vim of Bash on Windows? can help you out. There's a few solutions that don't require installing an X server on Windows. | |
May 2, 2020 at 14:17 | answer | added | romainl | timeline score: 2 | |
May 2, 2020 at 3:31 | comment | added | filbranden |
Can you use clip.exe to access the clipboard from WSL? If so, select the lines visually them run :w !clip.exe . (Source for the clip.exe suggestion: raymondcamden.com/2017/10/19/…)
|
|
May 1, 2020 at 22:39 | comment | added | Christian Gibbons |
If you don't want vim to handle your mouse so you can still highlight and copy as you would anything else from the terminal, you should be able to :set mouse=
|
|
May 1, 2020 at 20:45 | history | asked | nomen | CC BY-SA 4.0 |