[Vim-latex-devel] Nested manual folding
Brought to you by:
srinathava,
tmaas
From: Cristian R. <cr...@li...> - 2006-02-02 22:31:35
|
Hi, I'm trying to allow nesting for manual folds in latex-suite; to do so I tried modifying the function MakeTexFolds in folding.vim, adding the "start= skip" and "endskip" arguments to the call of AddSyntaxFoldItem, like that (line 3= 26): " Original code "call AddSyntaxFoldItem (=20 " \ '<<<', " \ '>>>', " \ 0, " \ 0 " \ ) =20 " My re-writing: call AddSyntaxFoldItem ( \ '<<<', \ '>>>', \ 0, \ -1, \ '<<<', \ '>>>' \ ) But unfortunately it doesn't seem to work; as I open a latex file in vim, it freezes eating up all my CPU; if I break it with Ctrl-C I got a couple of e= rrors and a badly highlighted file. Error detected while processing /home/cri/.vim/ftplugin/tex_latexSuite.vi= m: line 13: Interrupted Error detected while processing /usr/share/vim/vim64/ftplugin/tex.vim: line 1: Interrupted (I'm using latest tgz package on Debian GNU/Linux unstable and vim 6.4) This happens whatever value I set to g:Tex_FoldedMisc (except, of course, i= f I don't include '<<<'). Are my changes wrong or am I missing something? For the curious, the reason why I'm looking for nested manual folds lies in= the fact that I'd like to define "arbitrary" manual foldings in the preamble (possibly containing blocks of comments) but "comment" folds seem to intera= ct badly with "manual" folds; again, I tried various settings of g:Tex_FoldedM= isc (e.g. exchanging the order of "<<<" and "comments") but I didn't find the right one; so that's why I turned to nested manual folding: if I could make them work, I would use only manual folding, dropping "comment" and "preambl= e" (which don't seem to work the way I expect together with manual folds). (I can elaborate on that and provide some examples if you are interested) Well, thanks for reading (and of course, thanks for this great project)! Cri --=20 GPG/PGP Key-Id 0x943A5F0E - http://www.linux.it/~cri/cri.asc |