diff options
author | Teddy Wing | 2023-09-25 19:27:31 +0200 |
---|---|---|
committer | Teddy Wing | 2023-09-25 19:27:31 +0200 |
commit | 61757534802b493131fdf539a4d08eb77a551493 (patch) | |
tree | 39b57d4a52413baa1d84b0c35bfafb4e0f486c52 | |
parent | b171b70f2adcde12403f80e9fe762284553e4388 (diff) | |
download | dotvim-61757534802b493131fdf539a4d08eb77a551493.tar.bz2 |
vimrc: Only turn on 'smoothscroll' if it's available
Keep supporting older versions of Vim.
-rw-r--r-- | vimrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |