From 52888e8e685e3abca17d1ffb226a43375aa0da3e Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 16 Oct 2024 14:42:02 -0400 Subject: [PATCH] Don't scroll when the cursor is near the top or bottom edge --- vim/config/settings.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/config/settings.vim b/vim/config/settings.vim index db74371..b355049 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -63,7 +63,7 @@ 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=5 "scroll vertically when the cursor is 5 characters away from the top or bottom + set scrolloff=0 "don't scroll vertically when the cursor is near 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 shortmess+=I "disable startup message