Monday, June 3, 2013

Re: How are you editing HTML?

On Mon, June 3, 2013 01:48, Steve Litt wrote:
> Hi all,
>
> After 17 years using WYSIWYG HTML editors, I'm switching to Vim because
> Bluegriffon, Kompozer, NVU, and SeaMonkey availability in Linux distros
> is catch as catch can, and there's always a question about whether
> they're still supported.
>
> So now I'm using Vim plus snipMate. But I need a lot more. For one
> thing, as I type my HTML, it goes into the file as a jumble, with
> inconsistent indentation and no blank line before <h1>, <h2> etc
> headers. Tables aren't sectioned off with whitespace. Is there a way to
> get Vim's indentation better and more consistent? If not, is there a
> program to reformat HTML for easier editing? If I can't find one, I'll
> just write it in AWK or Lua, but I'd rather ask first.

If the html indent script does not work for you (e.g. the one you
get when doing :filetype plugin indent), you might try the xml
indent script (e.g. by
:unlet b:did_indent
:source $VIMRUNTIME\indent\xml.vim
)

regards,
Christian

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: