From d305317587c86e0d04e157fe6f99f65ef78dd6d6 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Fri, 24 Sep 2021 08:47:48 +0200 Subject: [PATCH 1/4] ftdetect, add *.zone* to filetype bind-named --- ftdetect/bind-named.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftdetect/bind-named.vim b/ftdetect/bind-named.vim index 0038d9b..5339bd8 100644 --- a/ftdetect/bind-named.vim +++ b/ftdetect/bind-named.vim @@ -11,4 +11,4 @@ " Remarks: " See syntax/bind-named.vim for additional info. -au! BufNewFile,BufRead named.conf,rndc.conf,rndc.key,*-named.conf,*_named.conf,*.named.conf,named-*.conf,named_*.conf,named.*.conf,rndc-*.conf,rndc_*.conf,rndc.*.conf,rndc.key,rndc-*.key,rndc_*.key,rndc.key,mz.*,sz.*,view.*,named.conf* set filetype=bind-named +au! BufNewFile,BufRead named.conf,rndc.conf,rndc.key,*-named.conf,*_named.conf,*.named.conf,named-*.conf,named_*.conf,named.*.conf,rndc-*.conf,rndc_*.conf,rndc.*.conf,rndc.key,rndc-*.key,rndc_*.key,rndc.key,mz.*,sz.*,view.*,named.conf*,*.zone* set filetype=bind-named From 16c17a4372ef9ef47293086f79d786cca2a95839 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Fri, 24 Sep 2021 09:01:09 +0200 Subject: [PATCH 2/4] disable debug messages --- ftplugin/bind-named.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftplugin/bind-named.vim b/ftplugin/bind-named.vim index ed61b93..fcce852 100644 --- a/ftplugin/bind-named.vim +++ b/ftplugin/bind-named.vim @@ -41,10 +41,10 @@ if namedindent_override_with_local_expandtab != 0 if namedindent_disable_expandtab != 0 " expandtab got defined elsewhere, so we use hard tab, locally setlocal noexpandtab - echomsg "No nein Expandtabby..." + " echomsg "No nein Expandtabby..." else " noexpandtab got defined elsewhere, so we use hard tab, locally - echomsg "Expandtabby..." + " echomsg "Expandtabby..." setlocal expandtab endif endif From 4c2bfb7ba08255e3aea0bd37b4edf14b1abc03ad Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Fri, 24 Sep 2021 09:01:18 +0200 Subject: [PATCH 3/4] fix expandtab. even it was configured to set noexpandtab it was overwritten later again --- ftplugin/bind-named.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftplugin/bind-named.vim b/ftplugin/bind-named.vim index fcce852..30afab6 100644 --- a/ftplugin/bind-named.vim +++ b/ftplugin/bind-named.vim @@ -47,9 +47,9 @@ if namedindent_override_with_local_expandtab != 0 " echomsg "Expandtabby..." setlocal expandtab endif +else + setlocal expandtab + filetype plugin indent on endif -setlocal expandtab -filetype plugin indent on - setlocal completefunc=syntaxcomplete#Complete From 73a743aa87340d32f68ff7df67e2c898c835ea9c Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Sat, 9 Oct 2021 20:19:00 +0200 Subject: [PATCH 4/4] ftdetect, add *.zones to filetype bind-named --- ftdetect/bind-named.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftdetect/bind-named.vim b/ftdetect/bind-named.vim index 5339bd8..c336a0a 100644 --- a/ftdetect/bind-named.vim +++ b/ftdetect/bind-named.vim @@ -11,4 +11,4 @@ " Remarks: " See syntax/bind-named.vim for additional info. -au! BufNewFile,BufRead named.conf,rndc.conf,rndc.key,*-named.conf,*_named.conf,*.named.conf,named-*.conf,named_*.conf,named.*.conf,rndc-*.conf,rndc_*.conf,rndc.*.conf,rndc.key,rndc-*.key,rndc_*.key,rndc.key,mz.*,sz.*,view.*,named.conf*,*.zone* set filetype=bind-named +au! BufNewFile,BufRead named.conf,rndc.conf,rndc.key,*-named.conf,*_named.conf,*.named.conf,named-*.conf,named_*.conf,named.*.conf,rndc-*.conf,rndc_*.conf,rndc.*.conf,rndc.key,rndc-*.key,rndc_*.key,rndc.key,mz.*,sz.*,view.*,named.conf*,*.zone, *.zones set filetype=bind-named