diff --git a/ftplugin/latex-suite/texviewer.vim b/ftplugin/latex-suite/texviewer.vim index a2f65ff..42b3b29 100644 --- a/ftplugin/latex-suite/texviewer.vim +++ b/ftplugin/latex-suite/texviewer.vim @@ -381,7 +381,7 @@ function! s:Tex_CompleteRefCiteCustom(type) let bibkey = matchstr(getline('.'), '\\bibitem\s*\%(\[.\{-}\]\)\?\s*{\zs.\{-}\ze}') if bibkey == "" " Look for a '@article{bibkey,' - let bibkey = matchstr(getline('.'), '@\w*{\zs\w*\ze,') + let bibkey = matchstr(getline('.'), '@\w*{\zs.*\ze,') endif let completeword = bibkey