Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

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

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

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

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

Comments

@icinga-migration
Copy link

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
Copy link
Author

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

  • Target Version set to 1.10

@icinga-migration
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant