@@ -44,24 +44,24 @@ highlight default link dircolorsExtension Identifier
4444highlight default link dircolorsEscape Special
4545
4646function ! s: set_guicolors () abort
47- let s: guicolors = {}
48-
49- let s: guicolors [0 ] = " Black"
50- let s: guicolors [1 ] = " DarkRed"
51- let s: guicolors [2 ] = " DarkGreen"
52- let s: guicolors [3 ] = " DarkYellow"
53- let s: guicolors [4 ] = " DarkBlue"
54- let s: guicolors [5 ] = " DarkMagenta"
55- let s: guicolors [6 ] = " DarkCyan"
56- let s: guicolors [7 ] = " Gray"
57- let s: guicolors [8 ] = " DarkGray"
58- let s: guicolors [9 ] = " Red"
59- let s: guicolors [10 ] = " Green"
60- let s: guicolors [11 ] = " Yellow"
61- let s: guicolors [12 ] = " Blue"
62- let s: guicolors [13 ] = " Magenta"
63- let s: guicolors [14 ] = " Cyan"
64- let s: guicolors [15 ] = " White"
47+ let s: termguicolors = {}
48+
49+ let s: termguicolors [0 ] = " Black"
50+ let s: termguicolors [1 ] = " DarkRed"
51+ let s: termguicolors [2 ] = " DarkGreen"
52+ let s: termguicolors [3 ] = " DarkYellow"
53+ let s: termguicolors [4 ] = " DarkBlue"
54+ let s: termguicolors [5 ] = " DarkMagenta"
55+ let s: termguicolors [6 ] = " DarkCyan"
56+ let s: termguicolors [7 ] = " Gray"
57+ let s: termguicolors [8 ] = " DarkGray"
58+ let s: termguicolors [9 ] = " Red"
59+ let s: termguicolors [10 ] = " Green"
60+ let s: termguicolors [11 ] = " Yellow"
61+ let s: termguicolors [12 ] = " Blue"
62+ let s: termguicolors [13 ] = " Magenta"
63+ let s: termguicolors [14 ] = " Cyan"
64+ let s: termguicolors [15 ] = " White"
6565
6666 let xterm_palette = [" 00" , " 5f" , " 87" , " af" , " d7" , " ff" ]
6767
@@ -70,22 +70,22 @@ function! s:set_guicolors() abort
7070 for r in xterm_palette
7171 for g in xterm_palette
7272 for b in xterm_palette
73- let s: guicolors [cur_col] = ' #' . r . g . b
73+ let s: termguicolors [cur_col] = ' #' . r . g . b
7474 let cur_col += 1
7575 endfor
7676 endfor
7777 endfor
7878
7979 for i in range (24 )
8080 let g = i * 0xa + 8
81- let s: guicolors [i + 232 ] = ' #' . g . g . g
81+ let s: termguicolors [i + 232 ] = ' #' . g . g . g
8282 endfor
8383endfunction
8484
8585function ! s: get_hi_str (color , place) abort
8686 if a: color >= 0 && a: color <= 255
8787 if has (' gui_running' )
88- return ' gui' . a: place . ' =' . s: guicolors [a: color ]
88+ return ' gui' . a: place . ' =' . s: termguicolors [a: color ]
8989 elseif a: color <= 7 || &t_Co == 256 || &t_Co == 88
9090 return ' cterm' . a: place . ' =' . a: color
9191 endif
0 commit comments