Ubuntu – Vim 8 with system clipboard on 16.04 LTS

clipboardvim

I have install Vim 8 (so that I can use ale). Unfortunately I can't seem to get the system clipboard to work. (E.g. using vim-gnome I would use the "+y to yank to the system clipboard. Has anybody got this working?

I installed Vim 8 using:

sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim

Best Answer

If after adding the jonathanf/vim PPA you apt install vim, it installs vim.basic. If you instead apt install vim-gtk3, then you get vim.gtk3 which has +clipboard, and thus the system clipboard. Regardless of which one you install, it will get symlinked to /usr/bin/vim

(converted my comment to an answer in case anyone else stumbles into here)

Related Question