On 3/1/07, François Ingelrest <athropos@...
> Thank you very much for your answer. I have these lines in my .vimrc:
> if has("autocmd")
> au BufRead,BufNewFile *.cls set filetype=tex
> au BufRead,BufNewFile sconstruct set filetype=python
> " Nes C syntax (used by TinyOS)
> au BufRead,BufNewFile *.nc set filetype=nesc
> au! Syntax nesc source ~/.vim/nesc.vim
> I use them to force a filetype for some files. Shouldn't I do that?
It's not abvious whether any of your commands above
break auto-indenting or not. The only way to know is if you
comment them all out (first all of them, them one-by one)
and see if it changes anything wrt auto-indenting.
(Also comment out the new command you added today for this check),
> I added your line among mine:
> au BufRead * set autoindent cindent smartindent
> And now it's working correctly. As I understand it, these options are
> disabled because I didn't add them to my other lines? But in this
> case, why other options aren't also disabled?