[dev] collapsable functions
Mathieu CLABAUT
mathieu.clabaut at free.fr
Mon Apr 28 20:14:47 PDT 2003
On Mon, 28 Apr 2003, Chuck Hagenbuch wrote:
> Quoting Marko Djukic <marko at oblo.com>:
>
> > anyone have any opinions on this syntax (which seems to be used a lot in
> > PEAR):
> > // {{{ somelabel
> >
> > // }}}
> >
> > not sure about any other text editor, but i've just discovered that in vi
> > this creates collapsable sections for functions. huge help on big
> > libraries.
>
> I'm not a big fan of it, to be honest. For people with editors that don't
> support folding, or who just don't use it, it can waste a bunch of space. I
> also find it visually distracting and kind of ugly.
>
> That said, I won't veto it if the majority of developers want it. But it's
> not high on my list. :)
Marko, if you like folding, you should put the following line in you
~/.vimrc file:
let php_folding = 1
which tells to the php syntax highlighting script to generate syntax
folding informations. (There are other usefull highlighting options.
Look at $VIMRUNTIME/syntax/php.vim script).
You may also consider the TagList script
(http://www.vim.org/scripts/script.php?script_id=273) which I find
useful. Of course http://www.vim.org is a good resources.
(You can have a look at this web page, which is written in polish, but
it can gives some hints http://www.leon.w-wa.pl/texts/vim-php.php)
Hope this help....
-mathieu (vim addicted - <AD> and if you're looking for a spell checker,
may I suggest the following links
http://www.vim.org/scripts/script.php?script_id=465 </AD>)
--
________________http://www.gnu.org/philosophy/no-word-attachments.fr.html
Mathieu CLABAUT mailto:mathieu.clabaut at free.fr
F2F5 442F F2AC E1D5 9D31 3EFC 842A BC4A 123B 9A65
More information about the dev
mailing list