Change vim centering offset

This commit is contained in:
Michael Campagnaro 2023-01-22 08:34:06 -05:00
parent 89d5709677
commit 12969578aa

2
vimrc
View File

@ -1079,7 +1079,7 @@ function! CenterPane()
" Taken from https://dev.to/vinneycavallo/easily-center-content-in-vim " Taken from https://dev.to/vinneycavallo/easily-center-content-in-vim
lefta vnew lefta vnew
wincmd w wincmd w
exec 'vertical resize' string(&columns * 0.75) exec 'vertical resize' string(&columns * 0.65)
endfunction endfunction
nnoremap <leader>c :call CenterPane()<cr> nnoremap <leader>c :call CenterPane()<cr>