changeset 666:f5e12f656c03

[vimrc] move color adjustment closer to colorscheme definition
author nanaya <me@nanaya.pro>
date Sat, 11 Dec 2021 18:17:38 +0900
parents f93d4ac50080
children 6887e66d83b4
files rc/vimrc
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rc/vimrc	Fri Dec 10 21:10:20 2021 +0900
+++ b/rc/vimrc	Sat Dec 11 18:17:38 2021 +0900
@@ -30,10 +30,6 @@
 
 set list listchars=tab:>-,trail:.,extends:>,nbsp:?
 
-if has("autocmd")
-  autocmd colorscheme * highlight specialkey ctermfg=gray
-endif
-
 set number
 
 " http://stackoverflow.com/questions/14635295/vim-takes-a-very-long-time-to-start-up
@@ -84,6 +80,10 @@
   set nofoldenable
   set background=dark
 
+  if has("autocmd")
+    autocmd colorscheme * highlight specialkey ctermfg=gray
+  endif
+
   let g:srcery_bg_passthrough=1
   colorscheme srcery
 endif