On 2008-12-02, anhnmncb wrote:
>
>
> I use following lines for bib filetype:
>
>   set fdm=syntax
>   set foldtext=MY_TeX_BiBFoldText()
>   syntax region bibentry start=/[EMAIL PROTECTED]/ end=/^\s\?}.*\n\s*$/ 
> contained contains=ALL fold

>From my function and other stuff, you know I'm not a programmer, and not get
familiar with vimscript and regex, anyone can give me an improve version for
my syntax for bib? My version just can fold the bib entry like this:
@article{foo,
    author = {author},
    title = {title},
}

it doesn't support this one:
@article{foo,
    author = {author},
    title = {title},}

And my foldtext can support just one line of title, the splited long line will 
not
be regornized, so if title = {a long \n line title}, then the function just
returns "a long", not with the following line.

I know maybe there is already some plugins like latexsuit can do that, but I
don't get along well with them.

Any helpful info will be appreciated.

-- 
Regards,
anhnmncb


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to