From 48bbdc39b726385e2e63cd3edd2bbb7dff1c1962 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 17 Jun 2020 00:30:13 -0400 Subject: [PATCH] Start scrolling horizontally or vertically when the cursor is 5 characters from the edge, and scroll horizontally smoothly rather than in jumps --- vim/config/settings.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vim/config/settings.vim b/vim/config/settings.vim index 056a9b4..364ff78 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -82,7 +82,8 @@ set cursorline cursorcolumn "enable row/column highlighting set visualbell "notify visually instead of with an audible bell set splitright "add new tiles on the right (and not left) when added - set scrolloff=0 sidescrolloff=0 "start scrolling if the cursor is one position away from the edge + set scrolloff=5 "scroll vertically when the cursor is 5 characters away from the top or bottom + set sidescroll=1 sidescrolloff=5 "scroll horizontally when the cursor is 5 chars away from the edge set list listchars=tab:>-,trail:- "display tabs as: >--- and trailing spaces as: - set showmatch "show matching open bracket when closed bracket is inserted set matchtime=5 "the amount of time before the matching bracket will highlight