diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-12-18 15:13:23 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-12-18 15:13:23 +1300 |
commit | e91e5a2234b27900737e5b0a15d12b18e57c57ae (patch) | |
tree | 8ba460be5e42951c9e41f22de36b2657e6725fee /vim | |
parent | Merge branch 'release/v8.4.0' into develop (diff) | |
download | dotfiles-e91e5a2234b27900737e5b0a15d12b18e57c57ae.tar.gz dotfiles-e91e5a2234b27900737e5b0a15d12b18e57c57ae.zip |
Simplify 'cursorline' switching
Diffstat (limited to 'vim')
-rw-r--r-- | vim/autoload/colorscheme.vim | 8 | ||||
-rw-r--r-- | vim/vimrc | 2 |
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 @@ -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 |