aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2024-01-13 00:34:38 +1300
committerTom Ryder <tom@sanctum.geek.nz>2024-01-13 00:34:38 +1300
commitb96c7d23fbd5de3ada235606c170cbf99bb0cd0a (patch)
treebdde2df0910149525f4881705b15ec78cc4ae4cb
parentSet 'cdhome' if it exists (diff)
downloaddotfiles-b96c7d23fbd5de3ada235606c170cbf99bb0cd0a.tar.gz
dotfiles-b96c7d23fbd5de3ada235606c170cbf99bb0cd0a.zip
Set 'smoothscroll' if it exists
-rw-r--r--vim/vimrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 3b6b8671..b5f9870b 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -806,6 +806,15 @@ set noshowcmd
"
set shortmess+=I
+" Scrolling by screen line rather than file line makes sense to me. Turn the
+" option to do so on, if it's there. This only works with mouse scrolling,
+" which I don't use, and with CTRL-E, CTRL-Y, which I should be using more
+" anyway.
+"
+if exists('+smoothscroll')
+ set smoothscroll
+endif
+
" I find the defaults of new windows opening above or to the left of the
" previous window too jarring, because I'm used to both the i3 window manager
" and the tmux terminal multiplexer doing it the other way around, in reading