If you find that syntax highlighting doesn't work on Vim on Ubuntu, then I found the easiest way to fix it was simple to install the vim-full package with:
sudo apt-get install vim-full
It was as easy as that!
You may also need to uncomment a line in your /etc/vimrc file
syntax on