New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #4150] Add an Icinga syntax plugin for Vim #1274

Closed
icinga-migration opened this Issue May 7, 2013 · 6 comments

Comments

Projects
None yet
1 participant
@icinga-migration
Member

icinga-migration commented May 7, 2013

This issue has been migrated from Redmine: https://dev.icinga.com/issues/4150

Created by LarsEngels on 2013-05-07 15:08:34 +00:00

Assignee: LarsEngels
Status: Resolved (closed on 2013-12-03 15:42:12 +00:00)
Target Version: 1.10.2
Last Update: 2013-12-03 15:42:12 +00:00 (in Redmine)


I stumbled upon nagios.vim [[http://www.vim.org/scripts/script.php?script\_id=2261\]\] which is a Nagios syntax plugin for the Vim editor.
As it wasn't very useful for Icinga and outdated, I adapted it for Icinga.
It's not yet perfect but a good base to start with.

IMO it would be handy to have it in the contrib/ directory. There was no license in nagios.vim and I kept the original authors in the new version, so this shouldn't be a problem.

Attachments

  • icinga.vim LarsEngels - 2013-05-07 15:06:08 +00:00
  • icinga.vim.diff LarsEngels - 2013-11-12 12:53:35 +00:00 - Update for 1.10

Changesets

2013-05-29 10:36:20 +00:00 by (unknown) ca17a76

contrib: add vim highlight script for Icinga syntax

fixes #4150

2013-12-03 10:26:56 +00:00 by (unknown) ef2c2bd

Update vim syntax highlight script.

Fixes #4150

Relations:

@icinga-migration

This comment has been minimized.

Member

icinga-migration commented May 29, 2013

Updated by mfriedrich on 2013-05-29 10:22:49 +00:00

  • Target Version set to 1.10
@icinga-migration

This comment has been minimized.

Member

icinga-migration commented May 29, 2013

Updated by mfriedrich on 2013-05-29 10:30:07 +00:00

$ PREFIX=~/.vim
$ mkdir -p $PREFIX/{syntax,ftdetect} 
$ cp icinga.vim $PREFIX/syntax/
$ cat > $PREFIX/ftdetect/icinga.vim << EOF
au BufNewFile,BufRead /*etc/icinga/*.cfg,*sample-config/template-object/*.cfg{,.in},/var/icinga/objects.cache set filetype=icinga
EOF
@icinga-migration

This comment has been minimized.

Member

icinga-migration commented May 29, 2013

Updated by mfriedrich on 2013-05-29 10:39:54 +00:00

  • Status changed from New to Assigned
  • Assigned to set to LarsEngels
@icinga-migration

This comment has been minimized.

Member

icinga-migration commented May 29, 2013

Updated by Anonymous on 2013-05-29 12:26:01 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset ca17a76.

@icinga-migration

This comment has been minimized.

Member

icinga-migration commented Nov 12, 2013

Updated by LarsEngels on 2013-11-12 12:54:01 +00:00

  • File added icinga.vim.diff
  • Status changed from Resolved to Assigned
  • Target Version changed from 1.10 to 1.10.2

There were still some keywords I missed or that were introduced in 1.10. Attached is a patch to update icinga.vim.

@icinga-migration

This comment has been minimized.

Member

icinga-migration commented Dec 3, 2013

Updated by Anonymous on 2013-12-03 15:42:12 +00:00

  • Status changed from Assigned to Resolved

Applied in changeset ef2c2bd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment