Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv18597
Modified Files:
folding.vim
Log Message:
Change: Remove the comment folding from the default folding scheme.
Change: The TexFoldTextFunction had a few problems with creating fold text
for comments with the : character in them. The best way seems to be
to just substitute the first : character with ': %'.
Index: folding.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** folding.vim 30 Nov 2003 09:52:15 -0000 1.17
--- folding.vim 30 Nov 2003 10:36:57 -0000 1.18
***************
*** 13,17 ****
augroup LatexSuite
au LatexSuite User LatexSuiteFileType
! \ call Tex_Debug('folding.vim: catching LatexSuiteFileType') |
\ call Tex_SetFoldOptions()
augroup END
--- 13,17 ----
augroup LatexSuite
au LatexSuite User LatexSuiteFileType
! \ call Tex_Debug('folding.vim: catching LatexSuiteFileType', 'fold') |
\ call Tex_SetFoldOptions()
augroup END
***************
*** 75,79 ****
" Folding items which are not caught in any of the standard commands,
" environments or sections.
! TexLet g:Tex_FoldedMisc = 'comments,item,slide,'.
\ 'preamble,<<<'
--- 75,79 ----
" Folding items which are not caught in any of the standard commands,
" environments or sections.
! TexLet g:Tex_FoldedMisc = 'item,slide,'.
\ 'preamble,<<<'
***************
*** 340,352 ****
end
! let retText = matchstr(ftxto, '^[^:]*').': "'.header
! \.'" ('.label.') : '.caption
return retText
elseif getline(v:foldstart) =~ '^%' && getline(v:foldstart) !~ '^%%fake'
let ftxto = foldtext()
! return matchstr(ftxto, '^[^:]*').': Comments '
elseif getline(v:foldstart) =~ '^\s*\\document\(class\|style\).*{'
let ftxto = foldtext()
! return matchstr(ftxto, '^[^:]*').': Preamble:'.matchstr(ftxto, '[^:]*$')
else
return foldtext()
--- 340,352 ----
end
! let retText = matchstr(ftxto, '^[^:]*').': '.header.
! \ ' ('.label.') : '.caption
return retText
elseif getline(v:foldstart) =~ '^%' && getline(v:foldstart) !~ '^%%fake'
let ftxto = foldtext()
! return substitute(ftxto, ':', ': % ', '')
elseif getline(v:foldstart) =~ '^\s*\\document\(class\|style\).*{'
let ftxto = foldtext()
! return substitute(ftxto, ':', ': Preamble: ', '')
else
return foldtext()
|