Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv12789
Modified Files:
folding.vim
Log Message:
- catch the LatexSuiteFileType event to set up buffer local maps.
Index: folding.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** folding.vim 12 Jan 2003 22:02:39 -0000 1.9
--- folding.vim 17 Jan 2003 09:20:35 -0000 1.10
***************
*** 8,11 ****
--- 8,38 ----
"=============================================================================
+ nnoremap <unique> <Plug>Tex_RefreshFolds :call MakeTexFolds(1)<cr>
+
+ augroup LatexSuite
+ 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
+ endif
+ let b:doneSetFoldOptions = 1
+
+ setlocal foldtext=TexFoldTextFunction()
+
+ if g:Tex_Folding && g:Tex_AutoFolding
+ call MakeTexFolds(0)
+ endif
+
+ if g:Tex_Folding && !hasmapto('<Plug>Tex_RefreshFolds')
+ nmap <silent> <buffer> <Leader>rf <Plug>Tex_RefreshFolds
+ endif
+
+ endfunction " }}}
" MakeTexFolds: function to create fold items for latex. {{{
"
|