Change vim centering offset
This commit is contained in:
parent
89d5709677
commit
12969578aa
2
vimrc
2
vimrc
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user