Simplify autocmd

This commit is contained in:
Anthony Rose 2023-01-13 13:23:51 +00:00
parent 921f3c13e0
commit 1366e69cfd

7
vimrc
View file

@ -148,11 +148,8 @@ if has('autocmd')
autocmd User GoyoEnter Limelight autocmd User GoyoEnter Limelight
autocmd User GoyoLeave Limelight! autocmd User GoyoLeave Limelight!
augroup VCenterCursor autocmd BufEnter,WinEnter,WinNew,VimResized *
au! \ let &scrolloff=winheight(win_getid())/2
au BufEnter,WinEnter,WinNew,VimResized *,*.*
\ let &scrolloff=winheight(win_getid())/2
augroup END
endif endif
if has('folding') if has('folding')