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
vim7. The same for all other executables (
To do that, the following options for
configure can be used:
Note that the name of the script
gvimtutor and the executable
xxd cannot be changed.