aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-09-25 19:11:58 +0200
committerTeddy Wing2023-09-25 19:22:19 +0200
commitb171b70f2adcde12403f80e9fe762284553e4388 (patch)
tree43067fe859e4e57716e71b9da754115332eb8ff3
parentde0e8c423dd7e9ef6097ae332021bfb1f79d25a4 (diff)
downloaddotvim-b171b70f2adcde12403f80e9fe762284553e4388.tar.bz2
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.
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
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