diff options
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r-- | runtime/filetype.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index b9773b714..83d07bc10 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2012 Feb 24 +" Last Change: 2012 Mar 28 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -367,7 +367,11 @@ au BufNewFile,BufRead *.h call s:FTheader() func! s:FTheader() if match(getline(1, min([line("$"), 200])), '^@\(interface\|end\|class\)') > -1 - setf objc + if exists("g:c_syntax_for_h") + setf objc + else + setf objcpp + endif elseif exists("g:c_syntax_for_h") setf c elseif exists("g:ch_syntax_for_h") |