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



thesheep wrote:
> 
> No change
> 
> 
> A.J.Mechelynck wrote:
>> 
>> 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.
>>> 
>>> 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?
>> 
>> What happens if you use
>> 
>>      :filetype plugin indent on
>> 
>> ?
>> 
>> 
>> Best regards,
>> Tony.
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/HTML-files-don%27t-auto-indent%2C-everything-else-does-tf2889782.html#a8142585
Sent from the Vim - General mailing list archive at Nabble.com.

Reply via email to