From 69209e46e1c75480b43c0a41a974bebb8a520e81 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 7 Aug 2018 14:58:47 +1200 Subject: Check for 'cursorline' existence --- vim/vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 5b1423b1..be9c63ab 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -62,8 +62,10 @@ set comments= set confirm " Only turn on 'cursorline' if my colorscheme loaded -if exists('g:colors_name') && g:colors_name ==# 'sahara' - set cursorline +if exists('+cursorline') + if exists('g:colors_name') && g:colors_name ==# 'sahara' + set cursorline + endif endif " Try to keep swapfiles in one system-appropriate dir -- cgit v1.2.3