summaryrefslogtreecommitdiffstats
path: root/ftplugin/dockerfile.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/dockerfile.vim')
-rw-r--r--ftplugin/dockerfile.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/ftplugin/dockerfile.vim b/ftplugin/dockerfile.vim
new file mode 100644
index 00000000..3780119a
--- /dev/null
+++ b/ftplugin/dockerfile.vim
@@ -0,0 +1,20 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1
+
+" Vim filetype plugin
+" Language: Dockerfile
+" Maintainer: Honza Pokorny <http://honza.ca>
+" Last Change: 2014 Aug 29
+
+" Only do this when not done yet for this buffer
+if exists("b:did_ftplugin")
+ finish
+endif
+
+" Don't load another plugin for this buffer
+let b:did_ftplugin = 1
+
+let b:undo_ftplugin = "setl commentstring<"
+
+setlocal commentstring=#\ %s
+
+endif