From b171b70f2adcde12403f80e9fe762284553e4388 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 25 Sep 2023 19:11:58 +0200 Subject: vimrc: Turn on 'smoothscroll' I learned about this recently. According to https://vi.stackexchange.com/questions/11315/visual-scrolling-visual-c-e-and-c-y-across-wrapped-lines/42278#42278 it was added in Vim 9.0.0640. This allows scrolling within a soft-wrapped line, useful for writing prose, and very useful for reading files consisting of a single line, like a big JSON file or minified HTML. --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 6d20402..fb9aa89 100644 --- a/vimrc +++ b/vimrc @@ -503,6 +503,9 @@ " 2022.08.24: " * Turn off vim-go goimports on save. " +" 2023.09.25: +" * Turn on 'smoothscroll'. +" " Pathogen @@ -527,6 +530,7 @@ set wrap " Soft wrap set linebreak " Don't wrap in the middle of words. Only works when nolist is set set scrolloff=3 " Scroll offset: always keep 3 lines +set smoothscroll " Allow scrolling wrapped screen lines. set showmatch " Highlight matching braces etc. set hlsearch " Highlight searches -- cgit v1.2.3