Now I am using the pull-down menus to set
I also tried setting
g:tex_flavor='pdflatex', but neither worked.
in your config file for vim (e.g.
Add the following lines to ~/.vim/ftplugin/tex.vim (create the file if it doesn't already exist).
This is the same as evnu's solution, but without cluttering up your vimrc.