HOWTO: Set up vim-latex
1) Create configuration file ~/.vim/ftplugin/tex.vim:
" set viewer rules
let g:Tex_ViewRule_dvi = 'okular'
let g:Tex_ViewRule_ps = 'okular'
let g:Tex_ViewRule_pdf = 'okular'
" set compile rules
let g:Tex_CompileRule_dvi = 'latex -src-specials -interaction=nonstopmode $*'
let g:Tex_CompileRule_ps = 'ps2pdf $*'
let g:Tex_CompileRule_pdf = 'pdflatex -interaction=nonstopmode $*'
" set default target format
let g:Tex_DefaultTargetFormat = 'dvi'
" disable use of makefile
let g:Tex_UseMakefile = 0
" set intendation for LaTeX files
set sw=2
" use <C-n> to automatically cycle through all the labels
set iskeyword+=:
2) Add to ~/.vimrc:
" make vim to invoke LaTeX-Suite when opening a TeX file
filetype plugin on
" set grep to always generate a file name
set grepprg=grep\ -nH\ $*
" enable automatic indentation as you type
filetype indent on
" load vim-latex for empty TeX files
let g:tex_flavor='latex'