From 262960fa223139eb5e02647e77af6bac13a17066 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 4 Sep 2020 18:29:53 +0200 Subject: Synchronize shiftwidth with tabstop by default --- ftdetect/polyglot.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 87b0cf25..de4665b2 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -59,6 +59,9 @@ if !exists('g:python_highlight_all') call s:SetDefault('g:python_highlight_file_headers_as_comments', 1) call s:SetDefault('g:python_slow_sync', 1) endif + +" filetypes + if !has_key(s:disabled_packages, '8th') au! BufRead,BufNewFile *.8th endif @@ -377,7 +380,8 @@ endif if !has_key(s:disabled_packages, 'aptconf') au BufNewFile,BufRead */.aptitude/config setf aptconf - au BufNewFile,BufRead */etc/apt/apt.conf.d/{[-_[:alnum:]]\+,[-_.[:alnum:]]\+.conf} setf aptconf + au BufNewFile,BufRead */etc/apt/apt.conf.d/*.conf setf aptconf + au BufNewFile,BufRead */etc/apt/apt.conf.d/[^.]* setf aptconf au BufNewFile,BufRead apt.conf setf aptconf endif @@ -1722,6 +1726,9 @@ if !has_key(s:disabled_packages, 'trasys') au! BufNewFile,BufRead *.inp call polyglot#DetectInpFiletype() endif + +" end filetypes + au BufNewFile,BufRead,StdinReadPost * \ if !did_filetype() && expand("") !~ g:ft_ignore_pat \ | call polyglot#Heuristics() | endif -- cgit v1.2.3