summaryrefslogtreecommitdiffstats
path: root/ftplugin/docker-compose.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/docker-compose.vim')
-rw-r--r--ftplugin/docker-compose.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ftplugin/docker-compose.vim b/ftplugin/docker-compose.vim
new file mode 100644
index 00000000..45a103fc
--- /dev/null
+++ b/ftplugin/docker-compose.vim
@@ -0,0 +1,9 @@
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dockerfile') != -1
+ finish
+endif
+
+" Define comment string
+setlocal commentstring=#\ %s
+
+" Enable automatic comment insertion
+setlocal formatoptions+=cro