" from https://vi.stackexchange.com/a/26055 augroup KeepCentered autocmd! autocmd CursorMoved * normal! zz augroup END