summaryrefslogtreecommitdiffstats
path: root/ftplugin/ansible.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/ansible.vim')
-rw-r--r--ftplugin/ansible.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/ftplugin/ansible.vim b/ftplugin/ansible.vim
new file mode 100644
index 00000000..df766194
--- /dev/null
+++ b/ftplugin/ansible.vim
@@ -0,0 +1,8 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
+
+" Slow yaml highlighting workaround
+if exists('+regexpengine') && ('&regexpengine' == 0)
+ setlocal regexpengine=1
+endif
+
+endif