Re: HTML files don't auto indent, everything else does

2007-01-04 Thread Charles E Campbell Jr
thesheep wrote: 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.

Re: HTML files don't auto indent, everything else does

2007-01-03 Thread thesheep
I've now tried another machine, with a clean install of OSX Tiger. And the same thing happens. Auto-indent sets all the HTML lines flush left. I guess this is a default setting in OSX. But I can't understand why :set shiftwidth=2 isn't changing this... any other OSX VIM users out there?

Re: HTML files don't auto indent, everything else does

2007-01-03 Thread thesheep
OK now I see that 'autoindent' *is* working, in accordance with the help page, in the sense that each new line copies the left indentation from the line above it. But I was hoping for something that automatically indents all the code intelligently, according to the html tags. Now I realise that

Re: HTML files don't auto indent, everything else does

2007-01-03 Thread A.J.Mechelynck
thesheep wrote: OK now I see that 'autoindent' *is* working, in accordance with the help page, in the sense that each new line copies the left indentation from the line above it. But I was hoping for something that automatically indents all the code intelligently, according to the html tags.

Re: HTML files don't auto indent, everything else does

2006-12-28 Thread A.J.Mechelynck
thesheep wrote: 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.