aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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