aboutsummaryrefslogtreecommitdiff
path: root/vim/ftdetect/paludis.vim
blob: 2703a40b92e8446d816e32d2fb6214bcd14c09b2 (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
" Vim filetype detection file
" Language:	Paludis Things
" Author:	Ciaran McCreesh <ciaranm@gentoo.org>
" Copyright:	Copyright (c) 2007 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 environment.conf
    \     set filetype=paludis-environment-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 licenses.conf
    \     set filetype=paludis-licenses-conf

au BufNewFile,BufRead **/licenses.conf.d/*.conf
    \     set filetype=paludis-licenses-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 repository_defaults.conf
    \     set filetype=paludis-repositories-conf

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