[Vim-latex-cvs] vimfiles/ftplugin/latex-suite folding.vim,1.12,1.13
Brought to you by:
srinathava,
tmaas
|
From: <sri...@us...> - 2003-10-23 03:07:52
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv18537
Modified Files:
folding.vim
Log Message:
New: suggestions and fixes from Aditya Mahajan
Index: folding.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** folding.vim 16 Sep 2003 22:50:30 -0000 1.12
--- folding.vim 23 Oct 2003 01:51:00 -0000 1.13
***************
*** 13,22 ****
au LatexSuite User LatexSuiteFileType
\ call Tex_Debug('folding.vim: catching LatexSuiteFileType') |
! \ call s:SetFoldOptions()
augroup END
! " SetFoldOptions: sets maps for every buffer {{{
" Description:
! function! <SID>SetFoldOptions()
if exists('b:doneSetFoldOptions')
return
--- 13,22 ----
au LatexSuite User LatexSuiteFileType
\ call Tex_Debug('folding.vim: catching LatexSuiteFileType') |
! \ call Tex_SetFoldOptions()
augroup END
! " Tex_SetFoldOptions: sets maps for every buffer {{{
" Description:
! function! Tex_SetFoldOptions()
if exists('b:doneSetFoldOptions')
return
***************
*** 176,179 ****
--- 176,187 ----
\ )
" }}}
+ " {{{ thebibliography
+ call AddSyntaxFoldItem (
+ \ '^\s*\\begin{thebibliography}',
+ \ '^\s*\\end{thebibliography}',
+ \ 0,
+ \ 0
+ \ )
+ " }}}
" {{{ table
call AddSyntaxFoldItem (
***************
*** 200,203 ****
--- 208,212 ----
\ )
" }}}
+ " {{{ gather
call AddSyntaxFoldItem (
\ '^\s*\\begin{gather',
***************
*** 236,240 ****
call AddSyntaxFoldItem (
\ '^\s*\\subsection\W',
! \ '^\s*\\appendix\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document',
\ 0,
\ -1,
--- 245,249 ----
call AddSyntaxFoldItem (
\ '^\s*\\subsection\W',
! \ '^\s*\\appendix\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\bibliography\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document',
\ 0,
\ -1,
***************
*** 244,248 ****
call AddSyntaxFoldItem (
\ '^\s*\\section\W',
! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document',
\ 0,
\ -1,
--- 253,257 ----
call AddSyntaxFoldItem (
\ '^\s*\\section\W',
! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*\\bibliography\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document',
\ 0,
\ -1,
***************
*** 252,256 ****
call AddSyntaxFoldItem (
\ '^\s*%%fakesection',
! \ '^\s*\\appendix\W\|^\s\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document',
\ 0,
\ -1,
--- 261,265 ----
call AddSyntaxFoldItem (
\ '^\s*%%fakesection',
! \ '^\s*\\appendix\W\|^\s\\section\W\|^\s*%%fakesection\|^\s*\\bibliography\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document',
\ 0,
\ -1,
***************
*** 260,264 ****
call AddSyntaxFoldItem(
\ '^\s*\\chapter\W',
! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document',
\ 0,
\ -1
--- 269,273 ----
call AddSyntaxFoldItem(
\ '^\s*\\chapter\W',
! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\bibliography\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document',
\ 0,
\ -1
***************
*** 282,286 ****
function! TexFoldTextFunction()
if getline(v:foldstart) =~ '^\s*\\begin{'
! let header = matchstr(getline(v:foldstart), '^\s*\\begin{\zs\(figure\|table\|equation\|eqnarray\|gather\|align\|abstract\|keywords\)[^}]*\ze}')
let caption = ''
--- 291,295 ----
function! TexFoldTextFunction()
if getline(v:foldstart) =~ '^\s*\\begin{'
! let header = matchstr(getline(v:foldstart), '^\s*\\begin{\zs\(figure\|sidewaysfigure\|table\|equation\|eqnarray\|gather\|align\|abstract\|keywords\|thebibliography\)[^}]*\ze}')
let caption = ''
|