Tuesday, April 26, 2011

Editing PHP with Vim

Hello.

I'm sure this has been asked before on this mailing list and (partial)
solutions to this problem using plugins have been found but; You can't
edit HTML code efficiently in PHP documents with vim. The intentation
doesn't work at all.

Since Vim supports PHP by default, and you shouldn't need to install
anything extra to edit PHP with vim, I say that it's the default vim
installation's syntax and indentation files' job to also correctly
recognize and indent statements found outside of <?php ?> block such
as HTML, (inline) CSS and (inline) Javascript. I mention these because
this is the most common use case for webdevelopment with PHP and Vim
end because these languages already are supported by vim.

I see it as a bug in vim (i.e. fix it at the vim level, not with a
plugin) that I can't indent HTML in PHP files. Is this correct?

Greetings,

Tom Wieland

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment