The initial problem of the questioner was fixed by installing the package "vim-gtk3" on Ubuntu. See this question.
But anyway: How to install a additional version of Vim beside a version already installed by a package manager?
Well, you compile it yourself.
If you do that, you should already know how to build Vim and how to install the result of this build. A description can be found in the YouCompleteMe Wiki Building Vim from source (leave out the part where they explain how to remove Vim installed by the package manager).
Anyway the important part in this scenario, is that the name of the executable should not be vim
, but vim7
. The same for all other executables (view
-> view7
, vimdiff
-> vim7diff
...).
To do that, the following options for configure
can be used:
--with-vim-name=vim7
--with-ex-name=ex7
--with-view-name=view7
Note that the name of the script vimtutor
and gvimtutor
and the executable xxd
cannot be changed.