-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfiletype.vim
More file actions
55 lines (37 loc) · 1.32 KB
/
filetype.vim
File metadata and controls
55 lines (37 loc) · 1.32 KB
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
" my filetype.vim
augroup filetypedetect
" Structured Text
au! BufRead,BufNewFile *.stx setfiletype stx
" ReStructuredText
" NOTE: using shipped version (ft=rst) instead
"au! BufRead,BufNewFile *.rst setfiletype rest
" Markdown
"au BufRead,BufNewFile *.mkd,*.markdown setfiletype mkd
" JSON
"au BufRead,BufNewFile *.json setfiletype javascript
au BufRead,BufNewFile *.json setfiletype json
" SPARQL Query Syntax
au! BufNewFile,BufRead *.rq,*.sparql setfiletype sparql
" Relax NG Compact Syntax
au! BufRead,BufNewFile *.rnc setfiletype rnc
" SVG
au BufNewFile,BufRead *.svg setfiletype svg
" XHTML
au BufNewFile,BufRead *.xhtm,*.xhtml setfiletype xhtml
" Colors for rgb.txt
au! BufRead,BufNewFile rgb.txt setfiletype rgb
" Io
au! BufRead,BufNewFile *.io set filetype=io
" INI cfg:s (override default '*.ini' => dosini)
au! BufRead,BufNewFile *.ini set filetype=cfg
" Groovy
au! BufRead,BufNewFile *.groovy,*.gy setfiletype groovy
" JSP Tag File
au BufNewFile,BufRead *.tag setfiletype jsp
" FreeMarker
au BufNewFile,BufRead *.ftl setfiletype ftl
" Velocity macro
au! BufRead,BufNewFile *.vm setfiletype velocity
" Gradle build file
au BufNewFile,BufRead *.gradle setf groovy
augroup END