First important stuff after installation of ubuntu:
Good how-to in russian
sudo apt-get install vim python python-pip python-virtualenv git-core bash-completion
Create in a home directory config for vim $touch ~/.vimrc
or open global config to apply settings for all $sudo vim /etc/vim/vimrc
and add the following parameters to this files. autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType c set omnifunc=ccomplete#Complete
Good how-to in russian