Friday, May 4, 2012

Wrong indention for html

I'm using vim 7.3.515 on windows 7.
If I try to indent the following code wth gg=G, I get:

--------------------
<html>
<head>
<title>test</title>
<script type="text/javascript">
<!--
function func1() {
var i=0;
}
//-->
</script>
</head>
<body>
Hola
</body>
</html>
--------------------

which is wrong. How should I modify html.vim, on the indent folder, in
order to have the above code indented correctly?

Many thanks in advance,

--
Cesar

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