[Vim-latex-devel] Bug: Settings for taglist.vim plugin
Brought to you by:
srinathava,
tmaas
From: Peter G. <pgp...@or...> - 2004-10-03 18:36:12
|
I use latexSuite20040805 (Win32, gvim 6.3, exub. ctags 5.5.4) and recently had a problem with zero output in taglist window. I think, there is too much "\" in pattern regexp's in file: vimfiles/ftplugin/latex-suite/main.vim (beginning on line 833). I also suggest useful tex regexp's of Ajit J. Thakkar found in his version of ctags (http://www.unb.ca/fredericton/science/chem/ajit/f90.vim). So this work for me: if exists("g:Tex_TaglistSupport") && g:Tex_TaglistSupport == 1 if !exists("g:tlist_tex_settings") let g:tlist_tex_settings = 'tex;l:label;r:ref;b:bibitem;c:command;e:environment' endif if exists("Tlist_Ctags_Cmd") let s:tex_ctags = Tlist_Ctags_Cmd else let s:tex_ctags = 'ctags' " Configurable in texrc? endif if exists("g:Tex_InternalTagsDefinitions") && g:Tex_InternalTagsDefinitions == 1 let Tlist_Ctags_Cmd = s:tex_ctags ." --langdef=tex --langmap=tex:.tex.ltx.latex" \.' --regex-tex="/\\begin{abstract}/Abstract/s,abstract/"' \.' --regex-tex="/\\part[ \t]*\*?\{[ \t]*([^}]*)\}/\1/s,part/"' \.' --regex-tex="/\\chapter[ \t]*\*?\{[ \t]*([^}]*)\}/\1/s,chapter/"' \.' --regex-tex="/\\section[ \t]*\*?\{[ \t]*([^}]*)\}/\1/s,section/"' \.' --regex-tex="/\\subsection[ \t]*\*?\{[ \t]*([^}]*)\}/+ \1/s,subsection/"' \.' --regex-tex="/\\subsubsection[ \t]*\*?\{[ \t]*([^}]*)\}/+ \1/s,subsubsection/"' \.' --regex-tex="/\\paragraph[ \t]*\*?\{[ \t]*([^}]*)\}/+ \1/s,paragraph/"' \.' --regex-tex="/\\subparagraph[ \t]*\*?\{[ \t]*([^}]*)\}/+ \1/s,subparagraph/"' \.' --regex-tex="/\\begin{thebibliography}/BIBLIOGRAPHY/s,thebibliography/"' \.' --regex-tex="/\\tableofcontents/TABLE OF CONTENTS/s,tableofcontents/"' \.' --regex-tex="/\\frontmatter/FRONTMATTER/s,frontmatter/"' \.' --regex-tex="/\\mainmatter/MAINMATTER/s,mainmatter/"' \.' --regex-tex="/\\backmatter/BACKMATTER/s,backmatter/"' \.' --regex-tex="/\\appendix/APPENDIX/s,appendix/"' \.' --regex-tex="/\\label[ \t]*\*?\{[ \t]*([^}]*)\}/\1/l,label/"' \.' --regex-tex="/\\ref[ \t]*\*?\{[ \t]*([^}]*)\}/\1/r,ref/"' \.' --regex-tex="/\\(provide|new|renew)command\{\\[ \t]*([^} \t]+)[ \t]*\}/\2/c,command/"' \.' --regex-tex="/\\(newtheorem|(re)?newenvironment)\{[ \t]*([^} \t]+)[ \t]*\}/\3/e,environment/"' \.' --regex-tex="/\\bibitem\{[ \t]*([^} \t]+)[ \t]*\}/\1/b,bibitem/"' endif endif -- ------------------------------------------------------------- Peter Gasparovic http://buteo.szm.sk |