forked from rbhaddon/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiletype.vim
47 lines (32 loc) · 1.33 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
" filetype.vim
"
" Additional filetypes not handled by $VIMRUNTIME/filetype.vim.
"
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
" To ignore a filetype, add a line like this:
"autocmd! BufNewFile,BufRead *.fs setfiletype ignored
" ActionScript
autocmd! BufNewFile,BufRead *.as setfiletype actionscript
" Apache-style configuration files
autocmd! BufNewFile,BufRead *.cfg setfiletype apachestyle
" AppleScript
autocmd! BufNewFile,BufRead *.applescript,*.scpt setfiletype applescript
" JSON (JavaScript Object Notation)
autocmd! BufNewFile,BufRead *.json setfiletype javascript
" Markdown / MultiMarkdown
autocmd! BufNewFile,BufRead *.mkd,*.md setfiletype mkd
" MXML (Flex UI markup)
autocmd! BufNewFile,BufRead *.mxml setfiletype mxml
" PDF (Portable Document Format)
autocmd! BufNewFile,BufRead *.pdf setfiletype pdf
" SVG (Scalable Vector Graphics)
autocmd! BufNewFile,BufRead *.svg setfiletype xml
" Text (plain text)
autocmd! BufNewFile,BufRead *.txt setfiletype text
" XHTML
autocmd! BufNewFile,BufRead *.xhtml setfiletype xml
augroup END
" end filetype.vim