diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-29 19:11:11 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-29 19:11:11 +0200 |
commit | 1872af2d5e596cbea44a6e5739692dbff8302af5 (patch) | |
tree | 06f1348f1ac073b6580c00ef254563f0fd6db94b /ftplugin | |
parent | 46b09b0d5b3cb45d8e62851c40b418a3b9f20af4 (diff) | |
download | vim-polyglot-1872af2d5e596cbea44a6e5739692dbff8302af5.tar.gz vim-polyglot-1872af2d5e596cbea44a6e5739692dbff8302af5.zip |
Fix detection of conf files, closes #569
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/conf.vim | 23 |
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 |