[Vim-latex-cvs] vimfiles/ftplugin/latex-suite texrc,1.36,1.37 main.vim,1.47,1.48
Brought to you by:
srinathava,
tmaas
From: <mi...@us...> - 2003-09-29 01:19:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv19792 Modified Files: texrc main.vim Log Message: Add to main.vim definitions of tags for ctags and for texrc additional settings allowing for disabling this feature partially. Tags like TABLE OF CONTENTS, FRONTMATTER etc. allows for seeing structure of file. But I will not cry for it if somebody removes it :) Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** texrc 7 Sep 2003 17:23:33 -0000 1.36 --- texrc 28 Sep 2003 22:52:45 -0000 1.37 *************** *** 538,539 **** --- 538,554 ---- " }}} " ============================================================================== + " Taglist: Support for taglist.vim {{{ + " + " LaTeX-Suite offers now support for taglist.vim, the most popular Vim + " interface for ctags. You should use ctags version >= 5.0 and taglist >= 3.0. + TexLet g:Tex_TaglistSupport = 1 + + " This option turns on definition of tags for LaTeX. + " NOTE: In taglist window you may see duplicate entries for the same tag. It + " means some definitions are repeated somewhere else. You can turn off + " internal definitions or remove external (read ctags description + " where). + TexLet g:Tex_InternalTagsDefinitions = 1 + + " }}} + " ============================================================================== Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** main.vim 13 Sep 2003 07:03:13 -0000 1.47 --- main.vim 28 Sep 2003 22:52:45 -0000 1.48 *************** *** 651,658 **** " }}} ! " This variable has to be set before sourcing package files to add names of " commands to completion ! let g:Tex_completion_explorer = ',' ! " Mappings defined in package files will overwrite all other --- 651,692 ---- " }}} ! " ============================================================================== ! " Settings for taglist.vim plugin ! " ============================================================================== ! if exists("g:Tex_TaglistSupport") && g:Tex_TaglistSupport == 1 ! if !exists("g:tlist_tex_settings") ! let g:tlist_tex_settings = 'tex;s:section;c:chapter;l:label;r:ref' ! 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/"' ! endif ! endif ! " commands to completion ! let g:Tex_completion_explorer = ',' ! " Mappings defined in package files will overwrite all other |