Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP-correct-Indenting for VIM (version 1.18)

John Wellesz
Guest
 
Posts: n/a
#1: Sep 15 '05

Hello,

I've just released the version 1.18 of my script!


( you can find the original topic about it there:
http://groups.google.fr/group/comp.l...4d1c566472c8fa )


What's new:

- No more problems with Vim 6.3 and UTF-8.
- Opening braces "{" are always indented according to their block
starter.
Instead of:
if( $test
&& $test2 )
{
}

You have:
if( $test
&& $test2 )
{
}

Download:

http://www.vim.org/scripts/download_...hp?src_id=4587

Or (if the link above doesn't work)

http://www.2072productions.com/vim/indent/php.vim


Contact me if you have any problem with this version.



John Wellesz
Guest
 
Posts: n/a
#2: Sep 17 '05

re: PHP-correct-Indenting for VIM (version 1.18)


Version 1.181 (bug correction):


I Forgot to register 'class' as a block starter so the '{' after a
'class' could be wrongly indented...



Download:

http://www.vim.org/scripts/download_...hp?src_id=4590

Or (if the link above doesn't work)

http://www.2072productions.com/vim/indent/php.vim



Closed Thread