summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-29 19:11:11 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-29 19:11:11 +0200
commit1872af2d5e596cbea44a6e5739692dbff8302af5 (patch)
tree06f1348f1ac073b6580c00ef254563f0fd6db94b /ftplugin
parent46b09b0d5b3cb45d8e62851c40b418a3b9f20af4 (diff)
downloadvim-polyglot-1872af2d5e596cbea44a6e5739692dbff8302af5.tar.gz
vim-polyglot-1872af2d5e596cbea44a6e5739692dbff8302af5.zip
Fix detection of conf files, closes #569
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/conf.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/ftplugin/conf.vim b/ftplugin/conf.vim
new file mode 100644
index 00000000..50f87fa7
--- /dev/null
+++ b/ftplugin/conf.vim
@@ -0,0 +1,23 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'conf') == -1
+
+" Vim filetype plugin file
+" Language: generic configuration file
+" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
+" Latest Revision: 2008-07-09
+
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin = 1
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+let b:undo_ftplugin = "setl com< cms< fo<"
+
+setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
+
+endif