From 1872af2d5e596cbea44a6e5739692dbff8302af5 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 29 Sep 2020 19:11:11 +0200 Subject: Fix detection of conf files, closes #569 --- ftplugin/conf.vim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ftplugin/conf.vim (limited to 'ftplugin') 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 +" 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 -- cgit v1.2.3