aboutsummaryrefslogtreecommitdiff
path: root/vim/ftdetect/paludis.vim
blob: 61ff2e0ffbe347e90a6b0246555bc20583a99ef6 (plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
" Vim filetype detection file
" Language:	Paludis Things
" Author:	Ciaran McCreesh
" Copyright:	Copyright (c) 2007, 2010 Ciaran McCreesh
" Licence:	You may redistribute this under the same terms as Vim itself
"
" Filetype detection for Paludis things.
"

if &compatible || v:version < 700
    finish
endif

au BufNewFile,BufRead general.conf
    \     set filetype=paludis-general-conf

au BufNewFile,BufRead keywords.conf
    \     set filetype=paludis-keywords-conf

au BufNewFile,BufRead **/keywords.conf.d/*.conf
    \     set filetype=paludis-keywords-conf

au BufNewFile,BufRead platforms.conf
   \      set filetype=paludis-keywords-conf

au BufNewFile,BufRead **/platforms.conf.d/*.conf
   \      set filetype=paludis-keywords-conf

au BufNewFile,BufRead licenses.conf
    \     set filetype=paludis-licenses-conf

au BufNewFile,BufRead **/licenses.conf.d/*.conf
    \     set filetype=paludis-licenses-conf

au BufNewFile,BufRead licences.conf
   \      set filetype=paludis-licenses-conf

au BufNewFile,BufRead **/licences.conf.d/*.conf
   \      set filetype=paludis-licenses-conf

au BufNewFile,BufRead suggestions.conf
   \      set filetype=paludis-suggestions-conf

au BufNewFile,BufRead **/suggestions.conf.d/*.conf
   \      set filetype=paludis-suggestions-conf

au BufNewFile,BufRead mirrors.conf
    \     set filetype=paludis-mirrors-conf

au BufNewFile,BufRead **/mirrors.conf.d/*.conf
    \     set filetype=paludis-mirrors-conf

au BufNewFile,BufRead package_mask.conf
    \     set filetype=paludis-package-mask-conf

au BufNewFile,BufRead **/package_mask.conf.d/*.conf
    \     set filetype=paludis-package-mask-conf

au BufNewFile,BufRead package_unmask.conf
    \     set filetype=paludis-package-mask-conf

au BufNewFile,BufRead **/package_unmask.conf.d/*.conf
    \     set filetype=paludis-package-mask-conf

au BufNewFile,BufRead use.conf
    \     set filetype=paludis-use-conf

au BufNewFile,BufRead **/use.conf.d/*.conf
    \     set filetype=paludis-use-conf

au BufNewFile,BufRead options.conf
   \      set filetype=paludis-use-conf

au BufNewFile,BufRead **/options.conf.d/*.conf
   \      set filetype=paludis-use-conf

au BufNewFile,BufRead repository_defaults.conf
    \     set filetype=paludis-repositories-conf

au BufNewFile,BufRead repository.template
    \     set filetype=paludis-repositories-conf

au BufNewFile,BufRead **/repositories/*.conf
    \     set filetype=paludis-repositories-conf

au BufNewFile,BufRead **/metadata/repository_mask.conf
    \     set filetype=paludis-package-mask-conf

au BufNewFile,BufRead output.conf
    \     set filetype=paludis-output-conf