diff --git a/vimrc b/vimrc index 5b773f0..4f2438f 100644 --- a/vimrc +++ b/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')