diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-12-18 16:02:51 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-12-18 16:02:51 +1300 |
commit | 80f19a0d2beb72fd949fca71834e91cce102616e (patch) | |
tree | a6e6032582a96ce803f3796cdbf47f7509252f25 | |
parent | Merge branch 'release/v8.4.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-80f19a0d2beb72fd949fca71834e91cce102616e.tar.gz dotfiles-80f19a0d2beb72fd949fca71834e91cce102616e.zip |
Merge branch 'release/v8.5.0'v8.5.0
* release/v8.5.0:
Update change date on vimrc
Set 'cursorline' for all windows on colors change
Specify some interdependencies in Vim config
Simplify 'cursorline' switching
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | VERSION | 4 | ||||
-rw-r--r-- | vim/autoload/colorscheme.vim | 14 | ||||
-rw-r--r-- | vim/vimrc | 2 |
4 files changed, 13 insertions, 11 deletions
@@ -554,7 +554,7 @@ install-vim-after: install-vim-after-ftplugin \ install-vim-after-plugin \ install-vim-after-syntax -install-vim-after-ftplugin: +install-vim-after-ftplugin: install-vim-compiler mkdir -p $(VIMDIR)/after/ftplugin cp -p -- vim/after/ftplugin/*.vim $(VIMDIR)/after/ftplugin @@ -595,7 +595,7 @@ install-vim-compiler: mkdir -p -- $(VIMDIR)/compiler cp -p -- vim/compiler/*.vim $(VIMDIR)/compiler -install-vim-config: install-vim-cache +install-vim-config: install-vim-autoload install-vim-cache cp -p -- vim/vimrc.stub $(HOME)/.vimrc cp -p -- vim/vimrc $(VIMRC) @@ -1,2 +1,2 @@ -tejr dotfiles v8.4.0 -Sun, 15 Dec 2019 04:23:07 +0000 +tejr dotfiles v8.5.0 +Wed, 18 Dec 2019 03:02:49 +0000 diff --git a/vim/autoload/colorscheme.vim b/vim/autoload/colorscheme.vim index 9ee9f24d..591550fd 100644 --- a/vim/autoload/colorscheme.vim +++ b/vim/autoload/colorscheme.vim @@ -1,8 +1,10 @@ -" Reset colorscheme based on current colorscheme name +" Reset window-global value for 'cursorline' 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 + let l:tab = tabpagenr() + let l:win = winnr() + tabdo windo let &g:cursorline = index(a:list, a:colors_name) >= 0 + \| silent doautocmd WinEnter,WinLeave + execute l:tab . 'tabnext' + execute l:win . 'wincmd w' + \| silent doautocmd WinEnter endfunction @@ -2,7 +2,7 @@ " Tom Ryder (tejr)’s Literate Vimrc " ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ " -" Last updated: Tue, 09 Jul 2019 13:11:16 +1200 +" Last updated: Wed, 18 Dec 2019 16:02:05 +1300 " " │ And I was lifted up in heart, and thought " │ Of all my late-shown prowess in the lists, |