Re: Howto turn vi auto indenting off for html files
--- Ron Johnson <firstname.lastname@example.org> wrote:
> On Sat, 2003-10-04 at 12:58, Joris Huizer wrote:
> > --- Ron Johnson <email@example.com> wrote:
> > > On Sat, 2003-10-04 at 09:10, Joris Huizer wrote:
> > > > Hello everybody,
> > > >
> > > > I like using VIM as it gives syntax
> > > and
> > > > auto indenting on C files...
> > > > But I don't like the auto indenting of html
> > > How
> > > > can I turn it off for one session - or even
> > > better,
> > > > for all html files ?
> > >
> > > :set noai
> > >
> > > --
> > Well I no difference in behavior when I do that...
> > added my .vimrc maybe there's something weird
> I know this is a stupid question, but did you
> restart vim after
> adding 'set noai' to ~/.vimrc ?
Well I thought you meant doing that while allready
running in vim. I looked closer to the .vimrc and I
found these lines were causing the trouble:
" Enable file type detection.
" Use the default filetype settings, so that mail
gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do
filetype plugin indent on
I commented the filetype line out and now it works :-)
Thanks for your help !
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search