aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-07-30 13:46:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2012-07-30 13:46:37 +1200
commitd68afb6ea2b5f5cc10de86ca04957aae4b091eb9 (patch)
treefef8559c40c85420c34aede3fdca02cb7fdced25
parentVersion 1.8: Initial upload (diff)
downloadvim-nagios-d68afb6ea2b5f5cc10de86ca04957aae4b091eb9.tar.gz
vim-nagios-d68afb6ea2b5f5cc10de86ca04957aae4b091eb9.zip
First commit of changes to nagios-syntax.
-rw-r--r--README10
-rw-r--r--README.markdown27
-rw-r--r--ftdetect/nagios.vim1
3 files changed, 28 insertions, 10 deletions
diff --git a/README b/README
deleted file mode 100644
index 66c3890..0000000
--- a/README
+++ /dev/null
@@ -1,10 +0,0 @@
-This is a mirror of http://www.vim.org/scripts/script.php?script_id=2261
-
-Nagios <http://www.nagios.org/&gt; template object configuration file.
-
-Initially based on gentoo source http://dev.gentoo.org/~ramereth/vim/syntax/nagios.vim
-http://bugs.gentoo.org/show_bug.cgi?id=76712
-which instead based on http://katanalynx.dyndns.org/~ajar/code :)
-
-Current URL:
-http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/vim-syntax-nagios/nagios.vim
diff --git a/README.markdown b/README.markdown
new file mode 100644
index 0000000..c0fbd7c
--- /dev/null
+++ b/README.markdown
@@ -0,0 +1,27 @@
+Nagios Vim Syntax
+=================
+
+Syntax file for Nagios in Vim. Forked from the [`vim-scripts` repository][1] of
+the same name, itself a mirror from [the script][2] on the official Vim site.
+
+This way I can add it as a Pathogen bundle and submodule of my [dotfiles][3]
+repository.
+
+This was originally forked to include `ftdetect` rules, which are missing from
+the original repository. They're for the default install going into
+`/usr/local/nagios`, or the Debian layout of `/etc/nagios3`. I'm happy to merge
+others in if this is at all helpful to anyone.
+
+I may add or fix more stuff later, which I'll push back to the original.
+
+License
+-------
+
+Sorry, I'm not sure what the license terms are. Check the original repo, or ask
+the maintainer, one Elan Ruusamäe. This particular fork is by [Tom Ryder][4].
+
+[1]: https://github.com/vim-scripts/nagios-syntax
+[2]: http://www.vim.org/scripts/script.php?script_id=2261
+[3]: https://github.com/tejr/dotfiles
+[4]: http://www.sanctum.geek.nz/about/tom-ryder
+
diff --git a/ftdetect/nagios.vim b/ftdetect/nagios.vim
new file mode 100644
index 0000000..b3b6766
--- /dev/null
+++ b/ftdetect/nagios.vim
@@ -0,0 +1 @@
+au BufNewFile,BufRead *{etc,local,lib}/nagios*/*.{cache,cfg} set filetype=nagios