-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfiletype.vim
65 lines (46 loc) · 1.83 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
" 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) and various JSON-format config files
"
autocmd! BufNewFile,BufRead
\ *.json,.jshintrc,.bowerrc
\ setfiletype javascript
" LESS
autocmd! BufNewFile,BufRead *.less setfiletype less
" Markdown / MultiMarkdown
"
" XXX: Would be nice to auto-detect Markdown for *.txt files.
"
autocmd! BufNewFile,BufRead *.mkd,*.md setfiletype markdown
" 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
" TypeScript
autocmd! BufNewFile,BufRead *.ts setfiletype typescript
" Template Toolkit 2
autocmd! BufNewFile,BufRead *.tt2 setfiletype tt2
" Text (plain text)
autocmd! BufNewFile,BufRead *.txt setfiletype text
" XHTML
autocmd! BufNewFile,BufRead *.xhtml setfiletype xml
" YAML
autocmd! BufNewFile,BufRead .eslintrc setfiletype yaml
augroup END
" end filetype.vim