aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-12-18 15:13:23 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-12-18 15:13:23 +1300
commite91e5a2234b27900737e5b0a15d12b18e57c57ae (patch)
tree8ba460be5e42951c9e41f22de36b2657e6725fee /vim
parentMerge branch 'release/v8.4.0' into develop (diff)
downloaddotfiles-e91e5a2234b27900737e5b0a15d12b18e57c57ae.tar.gz
dotfiles-e91e5a2234b27900737e5b0a15d12b18e57c57ae.zip
Simplify 'cursorline' switching
Diffstat (limited to 'vim')
-rw-r--r--vim/autoload/colorscheme.vim8
-rw-r--r--vim/vimrc2
2 files changed, 1 insertions, 9 deletions
diff --git a/vim/autoload/colorscheme.vim b/vim/autoload/colorscheme.vim
deleted file mode 100644
index 9ee9f24d..00000000
--- a/vim/autoload/colorscheme.vim
+++ /dev/null
@@ -1,8 +0,0 @@
-" Reset colorscheme based on current colorscheme name
-function! colorscheme#UpdateCursorline(colors_name, list) abort
- if index(a:list, a:colors_name) >= 0
- set cursorline
- else
- set nocursorline
- endif
-endfunction
diff --git a/vim/vimrc b/vim/vimrc
index 3eb1dbbe..9b078c17 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -887,7 +887,7 @@ endif
" <https://github.com/vim/vim/releases/tag/v7.4.108>
"
autocmd vimrc ColorScheme *
- \ call colorscheme#UpdateCursorline(g:colors_name, ['sahara'])
+ \ let &cursorline = g:colors_name ==# 'sahara'
" Use 'dark' as my default value for 'background', in the absence of an
" environment variable COLORFGBG or a response in v:termrbgresp that would set