Am 05.08.2013 09:01, schrieb Gary Johnson:
On 2013-08-04, Andy Wokula wrote:
People, you can fill this thread with your complaints about the HTML
indent script.
I'm the current maintainer, lately I read lots of unspecific rants
here and there but direct feedback is rare for some reason.
The current version is a descendant of
http://vim.sf.net/scripts/script.php?script_id=2075
It's very different from the original version by J. Zellner.
I'm aware of some deficiencies, I don't mind to hear them twice.
Thank you for being so open to criticism and so willing to make
changes.
I started looking for examples of indentation that I didn't like in
my HTML files. Then I looked in the indent/html.vim plugin and
discovered that it had changed a lot since the last time I tried
tuning it. I found that I could fix all the indentation issues by
putting this in my ~/.vimrc:
let g:html_indent_inctags = "body,html,head,p,tbody"
With that, the indentation now looks great.
Ok. If it works, this means you are always putting the closing tag.
But the end tag for BODY, HTML, P, TBODY (and a few others) is optional.
I want to add support for missing closing tags, but I wonder if it's
worth the effort.
And yes, you can tell for each tag element if it should cause extra
indent or not.
I got frustrated with Vim's HTML indentation some time ago and just
stopped relying on it. It may be that I haven't given it a chance
since your plugin was adopted.
--
Andy
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.