[Tex/LaTex] How to use BibTeX and Biblatex properly using vim LaTeX suite

biblatexbibtexvimvim-latex

I just stated using the vim-LaTeX-suite. It works quite well, but I fail in using BibTeX. My vimrc file is the following. I use an external build order and I think this causes additional problems:

filetype plugin on
filetype indent on
au BufEnter *.tex set autowrite
let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_MultipleCompileFormats = 'pdf'
let g:Tex_CompileRule_pdf = 'mkdir -p build && pdflatex -output-directory=build -interaction=nonstopmode $* && mv build/$*.pdf .'
let g:Tex_GotoError = 0
let g:Tex_ViewRule_pdf = 'evince'
if has('gui_running')
  set grepprg=grep\ -nH\ $*
  filetype indent on
  let g:tex_flavor='latex'
endif

Some googleing gave me the following: I have to use bibtex build/texfile_without_dot_tex. How can I include this properly into the vimrc file? I would like to configure things so that using \ll does all the work, including the Biblatex stuff. I want to have PdfLaTeX + Bibtex + PdfLaTeX (2 times).

EDIT: I am using Biblatex with BibTeX as backend.

Best Answer

After a very long time I realised that the problem is the following: build/*.aux does not work because the .bib-file is not in the folder build. As far as I can see exchanging line 6 in the vimrc-code of my question by

let g:Tex_CompileRule_pdf = 'mkdir -p build && pdflatex -output-directory=build -interaction=nonstopmode $* && cp *.bib build && cd build && bibtex %:r && cd .. && pdflatex -output-directory=build -interaction=nonstopmode $* && mv build/$*.pdf .'

worked for me.

Kind regards