Under ubuntu 14.04.1 system, use
sudo apt-get install vim
When I run the command, I encounter the problem of Media change: please insert the disc labeled ... and cannot be installed normally.
Find the solution from the Internet, edit the /etc/apt/sources.list file, comment out the cdrom line, and then execute
sudo apt-get update
command will do.