diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-06-30 16:58:19 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-07-10 22:08:50 +1200 |
commit | 81431988bbce2aac9baeaf05f45f0188f62a9e09 (patch) | |
tree | ef1a20d3ee5509b492703bf480130bf9e6f3a278 | |
parent | Translate autoload/colorscheme.vim to vim9script (diff) | |
download | dotfiles-81431988bbce2aac9baeaf05f45f0188f62a9e09.tar.gz dotfiles-81431988bbce2aac9baeaf05f45f0188f62a9e09.zip |
Add explanatory comment for unusual scoping
-rw-r--r-- | vim/autoload/colorscheme.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/autoload/colorscheme.vim b/vim/autoload/colorscheme.vim index 3769180e..b3fa17f5 100644 --- a/vim/autoload/colorscheme.vim +++ b/vim/autoload/colorscheme.vim @@ -1,5 +1,9 @@ vim9script +# I think this variable has to be script-local to be able to use it for +# settings in every tab and window. If there's a nicer way to do this without +# :execute I'd like to know, because the scope shouldn't really be this broad, +# but it's not the end of the world. var cursorline: bool # Reset window-global value for 'cursorline' based on current colorscheme name |