Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Conversation

andre-luiz-dos-santos
Copy link

expand() returns backslashes on Windows, but the regular expression was expecting forward slashes only.
autocmd should be able to do everything the removed code was doing, and it works on Windows too.

expand() returns backslashes on Windows, but the regular expression was expecting forward slashes only.
autocmd should be able to do everything the removed code was doing, and it works on Windows too.
" URL: https://github.com/chase/vim-ansible-yaml

autocmd BufNewFile,BufRead *.yml,*.yaml,*/{group,host}_vars/* call s:SelectAnsible("ansible")
autocmd BufNewFile,BufRead */roles/*.{yml,yaml},*/{group,host}_vars/* execute "set filetype=ansible"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this completely negate the need for the function s:SelectAnsible?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants