Hi,

I'm trying to use the vim-latex plugin to write, well, LaTeX documents.
I'm unable to get the citations to autocomplete using F9. I'm using 7.3
with patches 1-415 and 417-712, on Fedora 18 (which I keep really up to
date). Python support in vim is activated, and my version of Python is
2.7.3.

I've tested with a sample document, and a short bib file *in the same
folder*, and this works. It also works in all situations when I
autocomplete a \ref command, so this is not a key binding issue.

When I work on my papers, though, I don't get any response when I press
F9 in a \cite command.

I use Zotero to manage my references, and I keep a (somewhat large,
~3000 entries) central .bib file in my texmf tree, and I added the path
to this file in my .vimrc like so:

> let g:Tex_BIBINPUTS =
> "/home/tpoisot/texmf/bibtex/bib/local/library.bib"

(a copy of my vimrc is attached to this email). I've also tried to give
the full path to my library in the \bibliography command; that did not
worked.

I've read that sometime there are conflicts with grep not passing
filenames, so I've also added a line to that effect in my .vimrc

The only issue I think will happen is that the bibtex entries are not in
the correct format. Here are the first lines of my .bib file:

> @article{rall_universal_2012,
>       title = {Universal temperature and body-mass scaling of feeding rates},
>       volume = {367},
>       issn = {0962-8436},
>       url = 
> {http://rstb.royalsocietypublishing.org/cgi/doi/10.1098/rstb.2012.0242},
>       doi = {10.1098/rstb.2012.0242},
>       number = {1605},
>       journal = {Philosophical Transactions of the Royal Society B: 
> Biological Sciences},
>       author = {Rall, B. C. and Brose, U. and Hartvig, M. and Kalinkat, G. 
> and Schwarzmuller, F. and Vucic-Pestic, O. and Petchey, O. L.},
>       month = sep,
>       year = {2012},
>       pages = {2923–2934},
>       file = 
> {Rall_et_al_2012_Philosophical_Transactions_of_the_Royal_Society_B_Biological_Sciences_Universal_temperature_and_body-mass.pdf:/home/tpoisot/Documents/Zotero/storage/W4ZATPBQ/Rall_et_al_2012_Philosophical_Transactions_of_the_Royal_Society_B_Biological_Sciences_Universal_temperature_and_body-mass.pdf:application/pdf}
> },
> 
> @article{nakazawa_model_2012,

As you'll see there is no space between the key and the entry type,
which I've also read can block the completion.

FYI, the vim-pandoc plugin (which I think uses citeproc) has no trouble
autocompleting from this file. Given that the file is quite large, I
thought it might be an issue with reading and parsing, but the
vim-pandoc autocompletion is instantaneous.

After trying a number of things, I'm really unsure about what to do.
Does anybody on the list has an idea about what triggers the problem?

-- 
Timothée Poisot, Ph.D.

Post-doctoral scientist
Université du Québec à Rimouski
Theoretical Ecosystem Ecology

Website and reprints
http://timotheepoisot.fr/

Québec Centre for Biodiversity Sciences
http://qcbs.ca/
Intl. Network for Next-Gen. Ecologists
http://innge.net/








set number
set t_Co=256
set gcr=a:blinkon0
set textwidth=80
syntax on
filetype plugin on
filetype indent on
filetype on
execute pathogen#infect()
let g:pandoc_bibfiles = ['/home/tpoisot/texmf/bibtex/bib/local/library.bib']
color jellybeans
set ts=2
set cindent
set smartindent
set autoindent
set expandtab
set shiftwidth=2

set grepprg=grep\ -nH\ $*

" Latex kind of stuff
let g:Tex_BIBINPUTS = "/home/tpoisot/texmf/bibtex/bib/local/library.bib"
let g:Tex_BibtexFlavor = 'bibtex'
let g:Tex_Flavor='latex'
let g:Tex_DefaultTargetFormat='pdf'
set iskeyword+=:


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to