Vu The Cuong wrote:
> I often use html script for editing html files.
> (see: http://www.vim.org/scripts/script.php?script_id=453)
> I prefer XHML compatible tags. (Ex: when press ;br, insteadof <br>, it will
> ouput < /br>.
Shouldn't it rather output <br /> ? The <BR> element cannot have a closing tag.
> Can this script do that. If yes, could you guide me in detail?
> If No, is there script to do that?
> Thanks
What about
:let g:do_xhtml_mappings = 1
in your vimrc (if all your HTML files must have lowercase xhtml-compatible
tags), or
:let b:do_xhtml_mappings = 1
either manually or (if you can recognise which files to use it for) at the
BufRead and possibly the BufNewFile autocommand events?
I got this from ":help html-cutomization" in the companion helpfile; but I
didn't try it.
Best regards,
Tony.