aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2023-09-25 19:27:31 +0200
committerTeddy Wing2023-09-25 19:27:31 +0200
commit61757534802b493131fdf539a4d08eb77a551493 (patch)
tree39b57d4a52413baa1d84b0c35bfafb4e0f486c52 /vimrc
parentb171b70f2adcde12403f80e9fe762284553e4388 (diff)
downloaddotvim-61757534802b493131fdf539a4d08eb77a551493.tar.bz2
vimrc: Only turn on 'smoothscroll' if it's available
Keep supporting older versions of Vim.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index fb9aa89..ed9824c 100644
--- a/vimrc
+++ b/vimrc
@@ -530,7 +530,11 @@ 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.
+
+" Allow scrolling wrapped screen lines.
+if exists('+smoothscroll')
+ set smoothscroll
+endif
set showmatch " Highlight matching braces etc.
set hlsearch " Highlight searches