Synchronize shiftwidth with tabstop by default

This commit is contained in:
Adam Stankiewicz
2020-09-04 18:29:53 +02:00
parent b2640b5b76
commit 262960fa22
4 changed files with 18 additions and 76 deletions

View File

@@ -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