Simplify autocmd
This commit is contained in:
parent
921f3c13e0
commit
1366e69cfd
1 changed files with 2 additions and 5 deletions
7
vimrc
7
vimrc
|
@ -148,11 +148,8 @@ if has('autocmd')
|
|||
autocmd User GoyoEnter Limelight
|
||||
autocmd User GoyoLeave Limelight!
|
||||
|
||||
augroup VCenterCursor
|
||||
au!
|
||||
au BufEnter,WinEnter,WinNew,VimResized *,*.*
|
||||
\ let &scrolloff=winheight(win_getid())/2
|
||||
augroup END
|
||||
autocmd BufEnter,WinEnter,WinNew,VimResized *
|
||||
\ let &scrolloff=winheight(win_getid())/2
|
||||
endif
|
||||
|
||||
if has('folding')
|
||||
|
|
Loading…
Reference in a new issue