/
filetype.vim
29 lines (22 loc) · 913 Bytes
/
filetype.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
" my filetype file
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
" Some LaTeX types
au! BufRead,BufNewFile *.cls setfiletype tex
au! BufRead,BufNewFile *.lco setfiletype tex
" The ufl files from dolfin are python.
au! BufRead,BufNewFile *.ufl setfiletype python
"Set filetype for *.asy-files
au! BufNewFile,BufRead *.asy setfiletype asy
"Set filetype for vimperator config
au! BufNewFile,BufRead {.,}vimperatorrc setfiletype vimperator
"Set filetype for LDraw files
au! BufNewFile,BufRead *.ldr setfiletype ldraw
au! BufNewFile,BufRead *.mpd setfiletype ldraw
" Set filetype for wikipages (on euler), when opened from vimperator
au! BufRead /tmp/vimperator-euler.mathematik.tu-chemnitz.de*.tmp setfiletype wikipedia
" Set filetype for math.stackexchange, when opened from vimperator
au! BufRead /tmp/vimperator-math.stackexchange.com*.tmp setfiletype tex
augroup END