From 61757534802b493131fdf539a4d08eb77a551493 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 25 Sep 2023 19:27:31 +0200 Subject: vimrc: Only turn on 'smoothscroll' if it's available Keep supporting older versions of Vim. --- vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vimrc') 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 -- cgit v1.2.3