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.
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?
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
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.
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.