pearofducks / ansible-vim

A vim plugin for syntax highlighting Ansible's common filetypes
MIT License
800 stars 98 forks source link

Add top-level templates and files to path #48

Closed fungusakafungus closed 6 years ago

fungusakafungus commented 6 years ago

Assuming two things:

  1. that vim is started from top-level ansible dir and
  2. that top-level dir is the playbook_dir (which is the default)

and according to somewhat confusing documentation at https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/playbook_pathing.rst

...are $PWD/templates and $PWD/files valid paths for files and templates.

It works for me at the very least.

pearofducks commented 6 years ago

Makes sense, thanks for this!