summaryrefslogtreecommitdiffstats
path: root/ftplugin/ansible_hosts.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/ansible_hosts.vim')
-rw-r--r--ftplugin/ansible_hosts.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/ftplugin/ansible_hosts.vim b/ftplugin/ansible_hosts.vim
new file mode 100644
index 00000000..7dbd8ec4
--- /dev/null
+++ b/ftplugin/ansible_hosts.vim
@@ -0,0 +1,13 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
+
+if exists("b:did_ftplugin")
+ finish
+else
+ let b:did_ftplugin = 1
+endif
+
+setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions-=c
+
+let b:undo_ftplugin = "setl comments< commentstring< formatoptions<"
+
+endif