diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-04 18:29:53 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-04 18:29:53 +0200 |
commit | 262960fa223139eb5e02647e77af6bac13a17066 (patch) | |
tree | b4663916c7c706e5b53ea93da9704e0d4757632e /ftdetect | |
parent | b2640b5b760e6fc68b8cc49d3c8bab6cdef4f889 (diff) | |
download | vim-polyglot-4.9.0.tar.gz vim-polyglot-4.9.0.zip |
Synchronize shiftwidth with tabstop by defaultv4.9.0
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 9 |
1 files changed, 8 insertions, 1 deletions
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("<amatch>") !~ g:ft_ignore_pat \ | call polyglot#Heuristics() | endif |