From 1366e69cfd3aed774931d18ce3691659a49b33a6 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 13 Jan 2023 13:23:51 +0000 Subject: [PATCH] Simplify autocmd --- vimrc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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')