mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
done
This commit is contained in:
parent
a3cd8449b0
commit
e454ddbd6f
1 changed files with 11 additions and 1 deletions
12
vimrc
12
vimrc
|
@ -70,9 +70,19 @@ if has('eval')
|
||||||
let g:detectindent_preferred_indent = 4
|
let g:detectindent_preferred_indent = 4
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
fun! DetectDetectIndent()
|
||||||
|
try
|
||||||
|
call DetectIndent()
|
||||||
|
catch
|
||||||
|
endtry
|
||||||
|
endfun
|
||||||
|
|
||||||
if has('autocmd')
|
if has('autocmd')
|
||||||
autocmd BufEnter * :call WideFold()
|
autocmd BufEnter * :call WideFold()
|
||||||
autocmd BufReadPost * :DetectIndent
|
try
|
||||||
|
autocmd BufReadPost * :call DetectDetectIndent()
|
||||||
|
catch
|
||||||
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" ---- Spelling ----
|
" ---- Spelling ----
|
||||||
|
|
Loading…
Add table
Reference in a new issue