summaryrefslogtreecommitdiff
path: root/vim/.vim/after/syntax/vim.vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2020-04-07 13:13:35 +0200
committerUrbain Vaes <urbain@vaes.uk>2020-04-07 13:13:35 +0200
commitdc6a4bfb76eb92519c3d17d790055a546cdb9df5 (patch)
treef7bccc14b2ef0fe2f9ebdff17ebff1e54a45b2a6 /vim/.vim/after/syntax/vim.vim
parent4096ea1373b31fffc81523a361e555d11d7251fd (diff)
Add autocommand to reload colors
Diffstat (limited to 'vim/.vim/after/syntax/vim.vim')
-rw-r--r--vim/.vim/after/syntax/vim.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/.vim/after/syntax/vim.vim b/vim/.vim/after/syntax/vim.vim
index f6b389e..78e8d37 100644
--- a/vim/.vim/after/syntax/vim.vim
+++ b/vim/.vim/after/syntax/vim.vim
@@ -5,6 +5,8 @@ syntax cluster vimHiCluster add=vimHiCtermFg,vimHiCtermBg
" Modification of default rule: @vimHiNmbrFgCluster,@vimHiNmbrBgCluster instead of vimHiNmbr
syntax match vimHiCtermFg /\cctermfg=/ contained nextgroup=@vimHiNmbrFgCluster,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError
syntax match vimHiCtermBg /\cctermbg=/ contained nextgroup=@vimHiNmbrBgCluster,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError
+hi def link vimHiCtermFg vimHiCtermFgBg
+hi def link vimHiCtermBg vimHiCtermFgBg
" Assemble syntax groups
let syntax_groups_fg = "vimHiNmbrFg1"
@@ -20,6 +22,4 @@ exe "syntax cluster vimHiNmbrBgCluster contains=".syntax_groups_bg
for i in range(1, 255)
exe "syntax match vimHiNmbrFg".i." /".i."/ contained"
exe "syntax match vimHiNmbrBg".i." /".i."/ contained"
- exe "highlight vimHiNmbrFg".i." ctermfg=".i
- exe "highlight vimHiNmbrBg".i." ctermfg=black ctermbg=".i
endfor