-
Notifications
You must be signed in to change notification settings - Fork 9
/
filetypes.vim
36 lines (32 loc) · 1.03 KB
/
filetypes.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"##############################################################"
" vim: set foldmarker={,} foldlevel=0 foldmethod=marker :
"
" Vim Configuration
"
" Hangchen YU
"
" This is the personal Vim configuration of Hangchen YU.
"
" File: filetype.vim
"
"##############################################################"
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
au! BufRead,BufNewFile *.zcml set filetype=xml
au! BufRead,BufNewFile *.rst setfiletype rst
au! BufRead,BufNewFile *.txt setfiletype rst
au! BufRead,BufNewFile *.md setfiletype markdown
au! BufRead,BufNewFile *.wiki setfiletype moin
"au! BufNewFile,BufRead *.wiki setfiletype Wikipedia
au! BufRead,BufNewFile *.rs setfiletype rust
augroup END
" C Language
augroup project
autocmd!
autocmd BufRead,BufNewFile *.h,*.c set filetype=c.doxygen
augroup END
autocmd FileType html set tabstop=2|set shiftwidth=2
autocmd FileType xhtml set tabstop=2|set shiftwidth=2
autocmd FileType xml set tabstop=2|set shiftwidth=2