aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-03 19:47:22 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-03 19:47:22 +0000
commit0d381dc1e0023da770b9d9c5a1c809fb39756649 (patch)
tree0a3cc6379d69225752964815567dbedf37b7c8f9
parent51168ffc2dc12f15bc7d35d1b1272f47753001e6 (diff)
downloadpaludis-0d381dc1e0023da770b9d9c5a1c809fb39756649.tar.gz
paludis-0d381dc1e0023da770b9d9c5a1c809fb39756649.tar.xz
Vim syntax scripts
-rw-r--r--vim/ftdetect/paludis.vim58
1 files changed, 58 insertions, 0 deletions
diff --git a/vim/ftdetect/paludis.vim b/vim/ftdetect/paludis.vim
new file mode 100644
index 0000000..2703a40
--- /dev/null
+++ b/vim/ftdetect/paludis.vim
@@ -0,0 +1,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
+