Sunday, June 2, 2013

Re: How are you editing HTML?

> 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.
>
> I'm trying to use surround.vim, but haven't been successful yet.
>
> What other Vim addons are you guys using to edit HTML? What other
> advice (other than switch to a CMS -- that's not in the cards) do you
> have for me?


For authoring php/html - in Windows I use Notepad++ and in Linux I use
gedit/bluefish
But my primary use of vim is when using a console or am connected via ssh
to a remote server. I do edit php/html in vim in those cases but for
authoring, I use something else.

For pretty formatting of html, actually I use php DOMDocument class and
have it dump the DOM with formatting.

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

Post a Comment