I think this like you to consider!
HTML tags is too trouble!
Thank you help.I am go to find whether have it plugin!

2009/6/22 Tony Mechelynck <[email protected]>

>
> On 22/06/09 04:51, SamPeng wrote:
> > My HTML files too long!I want it working like PHP files folding.How to
> > do it?
>
> Well, I don't know how PHP files do it, but I'll try.
>
> Hypothesis I.
> Maybe the HTML syntax script foresees folding; then
>
>        :setlocal foldmethod=syntax
>
> would be enough.
>
> Hypothesis II.
> But maybe it doesn't. Then I think (but I haven't tested) that the
> following might already fold away your comments:
>
>        :setlocal foldmethod=marker foldmarker=<!--,-->
>
> I'm not sure how to fold according to HTML tags, other than by writing a
> function to be used as a 'foldexpr' for the "expr" folding method. If
> you try, beware that unlike XML and XHTML, HTML can have "optionally
> paired" tags, and that it has "never paired" tags which (unlike in
> XHTML) don't have to end in />.
>
> This ":setlocal" command (one or the other) can be put in
> $VIM/vimfiles/after/ftplugin/html.vim -- create the file and/or
> directories if they don't yet exist, and for system-wide settings,
> $VIM/vimfiles applies to both Windows and Unix. If you do it from within
> Vim, $VIM will be properly set, usually to something like /usr/local/vim
> on Unix or to something like "C:\Program Files\Vim" on Windows.
>
>
> Best regards,
> Tony.
> --
> He hated to mend, so young Ned
> Called in a cute neighbor instead.
>        Her husband said, "Vi,
>        When you stitched up his torn fly,
> Did you have to bite off the thread?"
>
> >
>

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

Reply via email to