For some reason the auto-indent features aren't working with HTML source
files (and I want them to).

I've tried these:

:filetype indent on
:set autoindent

I've also tried all these kinds of things:

:set shiftwidth=2
:set softtabstop=2

And then doing 'gg=G' to auto indent.

It indents my javascript nicely, but all the HTML is just pushed hard left
without any indentation.

HTML syntax is highlighted OK, so I guess the filetype thing is working.

My .vimrc file is pretty much emtpy: just says 'syntax on'.

Any ideas?
View this message in context:
Sent from the Vim - General mailing list archive at

Reply via email to