mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 05:23:51 -05:00
Synchronize shiftwidth with tabstop by default
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user