aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2005-06-07 16:33:57 +0000
committerRyan Phillips <rphillips@gentoo.org>2005-06-07 16:33:57 +0000
commitccb285aa4d0f9b71e2e9111709ae16744835bff2 (patch)
treeb694700653f3a0b17e9ab77f6c981e8612d5c811 /ftplugin
downloadgentoo-syntax-ccb285aa4d0f9b71e2e9111709ae16744835bff2.tar.gz
gentoo-syntax-ccb285aa4d0f9b71e2e9111709ae16744835bff2.tar.bz2
gentoo-syntax-ccb285aa4d0f9b71e2e9111709ae16744835bff2.zip
initial import
svn path=/trunk/; revision=1
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/ebuild.vim29
-rw-r--r--ftplugin/eclectic.vim26
-rw-r--r--ftplugin/gentoo-changelog.vim16
-rw-r--r--ftplugin/gentoo-metadata.vim24
4 files changed, 95 insertions, 0 deletions
diff --git a/ftplugin/ebuild.vim b/ftplugin/ebuild.vim
new file mode 100644
index 0000000..020dc83
--- /dev/null
+++ b/ftplugin/ebuild.vim
@@ -0,0 +1,29 @@
+" Vim filetype plugin file
+" Language: Gentoo Ebuilds / Eclasses
+" Author: Ciaran McCreesh <ciaranm@gentoo.org>
+" Copyright: Copyright (c) 2004-2005 Ciaran McCreesh
+" Licence: You may redistribute this under the same terms as Vim itself
+"
+" This sets up filetype specific options for Gentoo ebuilds and eclasses. Most
+" of these settings are mandated by policy.xml. Some settings are inherited
+" from vim's sh.vim. UTF-8 is selected as per GLEP 31.
+"
+
+if &compatible || v:version < 603
+ finish
+endif
+
+runtime! ftplugin/sh.vim
+
+" Include - in keyword characters (for strip-flags etc)
+exec "setlocal iskeyword=" . &iskeyword . ",45"
+
+" Required whitespace settings
+setlocal tabstop=4
+setlocal shiftwidth=4
+setlocal noexpandtab
+setlocal textwidth=80
+
+" GLEP 31 settings
+setlocal fileencoding=utf-8
+
diff --git a/ftplugin/eclectic.vim b/ftplugin/eclectic.vim
new file mode 100644
index 0000000..4193e5b
--- /dev/null
+++ b/ftplugin/eclectic.vim
@@ -0,0 +1,26 @@
+" Vim filetype plugin file
+" Language: Eclectic Module (bash)
+" Author: Ciaran McCreesh <ciaranm@gentoo.org>
+" Copyright: Copyright (c) 2004-2005 Ciaran McCreesh
+" Licence: You may redistribute this under the same terms as Vim itself
+"
+" This sets up filetype specific options for ectic modules. These settings
+" were pwned from ebuild.vim, but they wfm ..
+"
+
+if &compatible || v:version < 603
+ finish
+endif
+
+runtime! ftplugin/sh.vim
+
+" Will-do-for-now whitespace settings
+setlocal tabstop=4
+setlocal shiftwidth=4
+setlocal noexpandtab
+setlocal textwidth=80
+
+" GLEP 31 settings (??)
+setlocal fileencoding=utf-8
+
+" vim: sw=4 ts=4 et fdm=marker
diff --git a/ftplugin/gentoo-changelog.vim b/ftplugin/gentoo-changelog.vim
new file mode 100644
index 0000000..10f5009
--- /dev/null
+++ b/ftplugin/gentoo-changelog.vim
@@ -0,0 +1,16 @@
+" Vim filetype plugin file
+" Language: Gentoo ChangeLogs
+" Author: Ciaran McCreesh <ciaranm@gentoo.org>
+" Copyright: Copyright (c) 2004-2005 Ciaran McCreesh
+" Licence: You may redistribute this under the same terms as Vim itself
+"
+" Sets up settings for Gentoo ChangeLogs as per GLEP 31.
+"
+
+if &compatible || v:version < 603
+ finish
+endif
+
+" GLEP 31 settings
+setlocal fileencoding=utf-8
+
diff --git a/ftplugin/gentoo-metadata.vim b/ftplugin/gentoo-metadata.vim
new file mode 100644
index 0000000..a23e4c5
--- /dev/null
+++ b/ftplugin/gentoo-metadata.vim
@@ -0,0 +1,24 @@
+" Vim filetype plugin file
+" Language: Gentoo metadata.xml
+" Author: Ciaran McCreesh <ciaranm@gentoo.org>
+" Copyright: Copyright (c) 2004-2005 Ciaran McCreesh
+" Licence: You may redistribute this under the same terms as Vim itself
+"
+" This sets up filetype specific options for Gentoo metadata.xml files.
+"
+
+if &compatible || v:version < 603
+ finish
+endif
+
+runtime! ftplugin/xml.vim
+
+" Required whitespace settings
+setlocal tabstop=4
+setlocal shiftwidth=4
+setlocal noexpandtab
+setlocal textwidth=80
+
+" GLEP 31 settings
+setlocal fileencoding=utf-8
+