I have the following  in my .vimrc:

    filetype plugin indent on
    autocmd FileType c,h,cpp,hpp,cs setlocal cindent number cursorline

If I have a new buffer and set the filetype as follows, everything works
just fine:

    :set filetype=c

However, if I have a new buffer and I set the filetype like this, the
autocmd doesn't fire:

    :set filetype=c.doxygen

This syntax is described in:

    :help 'filetype'

The result is that I don't get cindent, number or cursorline set.

I actually noticed this behaviour when a modeline in a C file set the
filetype to 'c.doxygen' and my options didn't appear.

Does this work for anyone else or is it just my settings messing
something up?  Vim build details are below.

cheers

-----

VIM - Vi IMproved 7.0 (2006 May 7, compiled Mar 19 2007 20:36:01)
MacOS X (unix) version
Included patches: 1-219
Compiled by [EMAIL PROTECTED]
Big version with Carbon GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval +browse ++builtin_terms +byte_offset
+cindent 
-clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
+comments 
+cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs -dnd
-ebcdic 
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
+find_in_path 
+folding -footer +fork() -gettext -hangul_input +iconv +insert_expand
+jumplist
 +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap
+menu 
+mksession +modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm 
-mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang
-mzscheme 
-netbeans_intg -osfiletype +path_extra -perl +postscript +printer
-profile 
-python +quickfix +reltime +rightleft -ruby +scrollbind +signs
+smartindent 
-sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static 
-tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar

+user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace 
+wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp 
-xterm_clipboard -xterm_save 
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/Vim.app/Contents/Resources/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MAC
-fno-common -fpascal-strings -Wall -Wno-unknown-pragmas -mdynamic-no-pic
-pipe -I. -Iproto -DMACOS_X_UNIX -no-cpp-precomp
-I/Developer/Headers/FlatCarbon  -g -O        
Linking: 
gcc   -L/usr/local/lib -o Vim -framework Carbon      -lncurses  -liconv

Reply via email to