I really love doing my coding work in vim, and I also love working on Ubuntu (lately I've been on Ubuntu 17.10 and am really enjoying Gnome shell). At any rate I like to use vim 8 because it has asynchronous i/o support, which I need for ale. The only problem is that installing the binary via apt-get does not give me system clipboard support, so how to fix that?
Well, I decided to build vim from source. This is how I did it, and I get the latest version of vim, which is great, plus I get xterm integration for the system clipboard.
$ sudo apt-get remove vim # to remove the binary I had installed $ sudo apt build-dep vim $ git clone firstname.lastname@example.org:vim/vim.git $ cd vim/src $ ./configure --enable-multibyte \ --enable-rubyinterp=yes \ --enable-pythoninterp=yes \ --with-python-config-dir=/usr/lib/python2.7/config \ --enable-python3interp=yes \ --with-python3-config-dir=/usr/lib/python3.5/config \ --enable-perlinterp=yes \ --enable-luainterp=yes \ --enable-cscope \ --prefix=/usr \ --enable-gui=auto --enable-gtk2-check --with-x # this is what I needed $ make $ sudo make install