How to Install vim-full in 16.04?
vimdiff tool is under package vim. You should install vim using following command:
sudo apt-get install vim
Then you can use the vimdiff as:
vimdiff file1 file2
A number of Vim packages are available in the default repositories which have been compiled with different feature-sets. You can search to see which ones are available using:
apt-cache -n search vim
A number of packages provide a version of Vim that has been compiled with the “full” set of Vim features:
If you only want Vim for command-line use, you can install the
vim-nox
package (it installs thevim-common
package as a dependency).If using a GNOME-based desktop environment, install
vim-gnome
(it executable has been compiled with dependencies on GNOME libraries such aslibgnome2
,libbonoboui2
).If using another desktop environment,
vim-gtk
provides a GTK2 GUI; its only dependency isvim-gui-common
(as a Lubuntu user, that’s what I use).
How to install the latest Vim on Ubuntu 16.04, summary reproduced here:
#!/usr/bin/env bash
sudo apt update
sudo apt install -y git
sudo apt install -y build-essential
rm -fr /tmp/vim
git clone https://github.com/vim/vim.git /tmp/vim
make -C /tmp/vim
sudo make install -C /tmp/vim
rm -fr /tmp/vim