[Vim-latex-devel] Re: A bug in templates.vim
Brought to you by:
srinathava,
tmaas
From: Zhang L. <zl...@ls...> - 2003-11-30 01:59:17
|
Srinath Avadhanula wrote: >Hi LB, > >Thanks very much for the patches. I really like them :) I have been >meaning to have customization of the folding stuff for ages. I have >added the new stuff into the latest CVS head. > > Thanks for sorting out the code and I'm glad that you like it ;-) > Its pretty late right now, so I will put off making the developement > >release till tomorrow. In the meanwhile, please checkout the latest from >CVS and see if every thing is okay. > > I have moved the processing of the 'title' command before other standard commands/environments, otherwise it might be obsoleted by the 'titlepage' environment. The patch file is attached. This item might not be appropriate for all users because the \title and \maketitle commands are not always together, e.g., some people like to put the \title, \author, etc., commands in the preamble. So we might need to delete it from the default list. >Ofcourse, a big TODO is writing up documentation for this... I will do >it if you feel you have already done too much :) > > > It's little work compared to what you have done ;-) But please do write the documentation since I have never worked with the xml stuffs, and my english is not as good as well ;-( Another improvement I'm thinking of is to allow some kind of wildcards in the syntax match patterns. E.g., we can say: startpat='\s*\\begin\zs[:alpha:]*\ze' endpat='\s*\\end\zs[:alpha:]*\ze', ('\zs...\ze' in endpat is replaced by the actual matchstr when searching for the end pattern) to fold all '\beginxxxx ... \endxxxx' pairs, and: let g:TexFoldedEnvironments = '\zs[:alpha:]*\ze' to fold all environments. Also it would be nice if lines between '\begin{verbatim' and '\end{verbatim' can be skipped when searching for start/end patterns. I won't try the above enhancements until I have enough free time (I still have a lot to learn with Vim's scripting language in order to understand your MakeSyntaxFolds() function ;-) - It should be much easier for you to do them when you have time :-) ) Best, LB |