Skip to content

Autocompletion with cite does not work #113

@jarrndewitt

Description

@jarrndewitt

I use the following two files and try to get autocompletion of the \cite command to work:
test.tex

\documentclass{article}
\usepackage{natbib}
\bibliographystyle{dinat}
\begin{document}
\cite{s}
\bibliography{test}
\end{document}

test.bib

@Article{six,
title = "The Six -- a Boring Number",
author = "Name, Alice and Other, Bob",
journal = "Journal for Testing Affairs",
year = 2066,
volume = 66,
number = 6,
pages = "66--666",
}
@Article{seven,
title = "The Seven -- an Interesting Number",
author = "Name, Alice and Other, Bob",
journal = "Journal for Testing Affairs",
year = 2077,
volume = 77,
number = 7,
pages = "77--777",
}

When I put the cursor behind the s and press F9 I get two new editor panes.

The first titled test.tex [+] containing

test.bib|1 col 1| @Article{six,
test.bib|10 col 1| @Article{seven,
what appears to be some sort of grep results.

The second editor panes is titled [QuickFix-Liste] :grep.exe -nH ____HIGHLY_IMPROBABLE____ test.tex and contains the contents of the file test.bib.
Within these editor panes no filtering or navigation as described in the manual is possible.

I enabled debug mode an the log file reads

view : Tex_Complete: s:type = cite, typeoption =
view : :Tex_Complete: using s:prefix = s
view : +Tex_ScanFileForCite: searching for bibkeys in test.tex (buffer #1)
view : Tex_ScanFileForCite: found bibliography command in test.tex
view : trying to search through [test]
view : finding .bib file [test.tex]
main : SetTeXOptions: sourcing maps
comp : +Tex_SetTeXCompilerTarget: setting target to [pdf] for Compiler
comp : +Tex_SetTeXCompilerTarget: setting target to [pdf] for Viewr
comp : compiler/tex.vim: sourcing this file
view : +Tex_SetupCWindow
view : +Tex_SyncPreviewWindow
view : :Tex_CompleteRefCiteCustom: completing with
view : :Tex_SwitchToInsertMode:

I use a current vim-latex (downloaded from git) with vim 8.0 (32 bit) on windows 10 (64 bit) and the grep program recommended in the FAQ. Vim-latex loads correctly and everything beside \cite completion seems to work.

[I also asked for help on this issue on https://tex.stackexchange.com/questions/404030/vim-latexsuite-bibliography-completion-does-not-work but got no repsonses by now.]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions