aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-07 14:58:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-07 14:58:47 +1200
commit69209e46e1c75480b43c0a41a974bebb8a520e81 (patch)
tree510afbea381dbff3d0d4558bbe25bb0fcb681f20 /vim
parentAdd e() and v() wrappers (diff)
downloaddotfiles-69209e46e1c75480b43c0a41a974bebb8a520e81.tar.gz
dotfiles-69209e46e1c75480b43c0a41a974bebb8a520e81.zip
Check for 'cursorline' existence
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc6
1 files 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