summaryrefslogtreecommitdiffstats
path: root/ftplugin/ansible_hosts.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-05-02 10:42:37 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-05-02 10:42:37 +0200
commit5dd1a7e83966c92d220073185f1738dfe441f59e (patch)
tree9c4bee389a51a9bb111dcc894c9db0f6d1809d81 /ftplugin/ansible_hosts.vim
parentbc098370c1bb81840734f5764f431dee270e75ce (diff)
downloadvim-polyglot-5dd1a7e83966c92d220073185f1738dfe441f59e.tar.gz
vim-polyglot-5dd1a7e83966c92d220073185f1738dfe441f59e.zip
Update
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