In order to install the latest version of Vim, use the following
sudo add-apt-repository ppa:jonathonf/vim sudo apt-get update sudo apt-get install vim vim-gtk
As there was a major update to Vim in 2016, it’s better to get the latest version via the repo above. In addition, installing
vim-gtk allows you to be able to access content from the clipboard (via
Now you will be able to use
"+p to paste the contents of the clipboard.