Getting Copy / Paste to Work in WSL with tmux and Terminal Vim
Описание
Get your system clipboard working with tmux and Vim.
Hit the subscribe button to receive more videos like this!
---
- wsltty: https://github.com/mintty/wsltty
- tmux: https://github.com/tmux/tmux
- tmux-yank: https://github.com/tmux-plugins/tmux-yank
- Dotfiles: https://github.com/nickjj/dotfiles
- VcXsrv: https://sourceforge.net/projects/vcxsrv/
Is copy / pasting not working for you? As Nathan mentioned in the comments, you will also need to configure your X-server's display in your WSL ~/.bashrc (or equivalent) file. I forgot to mention that in the video, sorry!
Using WSL 2? You can use this 1 liner: https://github.com/nickjj/dotfiles/blob/385007837ab787a2be2e2f29577d899550d8e3f5/.bashrc#L62
Using WSL 1? You can use this 1 liner: https://github.com/nickjj/dotfiles/blob/385007837ab787a2be2e2f29577d899550d8e3f5/.bashrc#L75
Also my VcXsrv config is available on GitHub, you can put this file at the same Windows path as what you see in the repo, except replace Nick with your Windows username and it will auto-start the next time you boot up: https://github.com/nickjj/dotfiles/blob/70c5946fce6b2e3db19b46cc1a21a47dd05228af/c/Users/Nick/AppData/Roaming/Microsoft/Windows/Start%20Menu/Programs/Startup/config.xlaunc #L1-L2
---
Timestamps:
0:00 What we'll cover in this video
0:44 Getting familiar with your terminal
1:37 Copy / pasting text in your terminal
2:17 Copying text with tmux using the mouse
3:08 Configuring tmux to copy text with the mouse
4:46 Demonstrating why tmux-yank is so useful
6:21 Avoiding shift select to copy text with multiple tmux panes
7:39 Demonstrating the same shift select problem with Vim
8:50 Configuring Vim to use the system clipboard for yanking and pasting
12:35 Setting up VcXsrv to link your WSL and Windows clipboard
15:06 Getting VcXsrv to start when Windows boots up
---
Follow along?
Personal Website: https://nickjanetakis.com
Twitter: https://twitter.com/nickjanetakis
Рекомендуемые видео



















