ansible-vim : Syntax highlighting Ansible's common filetypes
script karma |
Rating 74/33,
Downloaded by 4605 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Dave Honneffer |
|
script type |
syntax |
|
description |
Official repo here: https://github.com/pearofducks/ansible-vim
This is a vim syntax plugin for Ansible 2.0, it supports YAML playbooks, Jinja2 templates, and dotini-based 'hosts' files.
YAML playbooks are detected if:
- they are in the group_vars or host_vars folder
- they are in the tasks or roles folder and have either a .yml or .yaml suffix
- they are named playbook.y(a)ml or site.y(a)ml
Jinja2 templates are detected if they have a .j2 suffix
Files named hosts will be treated as Ansible hosts files
This plugin should be quite reliable, as it sources the original formats and simply modifies the highlights as appropriate. This also enables a focus on simplicity and configurability instead of patching bad syntax detection. |
|
install details |
Expand the archive then:
cp -r ftdetect ftplugin syntax ~/.vim/ |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.9.172
|