3 ms·
I use vim for markdown editing, but I've been searching for a better alternative. Mainly, I want to be able to easily copy-paste between the editor and other pr
by afarrell 7y ago
I use vim for markdown editing, but I've been searching for a better alternative. Mainly, I want to be able to easily copy-paste between the editor and other programs. This is hard with vim because yank doesn't pull into the system clipboard by default. In my 11 years of working with vim, I've only found a reliable way to configure that behaviour twice, but it stopped working.
- nickjj 7y ago> Mainly, I want to be able to easily copy-paste between the editor and other programs. This is hard with vim because yank doesn't pull into the system clipboard by default. In my 11 years of working with vim, I've only found a reliable way to configure that behaviour twice, but it stopped working. If you run Vim with +clipboard support then you can yank things directly to and from your system clipboard by setting `set clipboard=unnamedplus`. Then Vim copy / pasting will work seamlessly like any other program on your system. You can also have it seamlessly work with tmux too and even with WSL if you're using terminal Vim in Windows through WSL. Here's a video that demos how it all works and also has a link to my dotfiles: https://nickjanetakis.com/blog/getting-copy-paste-to-work-in-wsl-with-tmux-and-terminal-vim https://nickjanetakis.com/blog/getting-copy-paste-to-work-in...