Révision | fe7c61cd73b2eb55dca14946e35636a77339fd7f (tree) |
---|---|
l'heure | 2022-05-25 03:15:31 |
Auteur | badcoff33 <none@none> |
Commiter | badcoff33 |
visual tunning
@@ -32,21 +32,21 @@ let s:GuiBg = {str -> empty(str) ? "":"guibg=".str} | ||
32 | 32 | let s:GuiAttr = {str -> empty(str) ? "":"gui=".str} |
33 | 33 | |
34 | 34 | " Basics |
35 | -execute 'hi Normal' s:GuiFg(s:silver2) s:GuiBg(s:white) s:GuiAttr('NONE') | |
36 | -execute 'hi Bold' s:GuiAttr('bold') | |
37 | -execute 'hi Italic' s:GuiAttr('italic') | |
38 | -execute 'hi NonText' s:GuiFg(s:silver6) s:GuiBg(s:silver9) | |
39 | -execute 'hi Visual' s:GuiFg(s:white) s:GuiBg(s:blue) | |
40 | -execute 'hi StatusLine' s:GuiFg(s:white) s:GuiBg(s:silver1) s:GuiAttr('bold') | |
41 | -execute 'hi StatusLineNC' s:GuiFg(s:silver2) s:GuiBg(s:silver7) s:GuiAttr('NONE') | |
42 | -execute 'hi StatusLineTerm' s:GuiFg(s:white) s:GuiBg(s:red) s:GuiAttr('bold') | |
43 | -execute 'hi VertSplit' s:GuiFg(s:silver9) s:GuiBg(s:silver9) s:GuiAttr('NONE') | |
44 | -execute 'hi IncSearch' s:GuiFg(s:white) s:GuiBg(s:black) s:GuiAttr('none') | |
45 | -execute 'hi Search' s:GuiFg(s:black) s:GuiBg(s:silver8) s:GuiAttr('NONE') | |
46 | -execute 'hi MatchParen' s:GuiFg(s:blue) s:GuiBg('bg') s:GuiAttr('bold') | |
47 | -execute 'hi CursorLine' s:GuiBg(s:silver9) | |
48 | -execute 'hi CursorLineNr' s:GuiFg(s:silver4) s:GuiAttr('bold') | |
49 | -execute 'hi LineNr' s:GuiFg(s:silver8) s:GuiAttr('bold') | |
35 | +execute "hi Normal" s:GuiFg(s:silver2) s:GuiBg(s:white) s:GuiAttr("NONE") | |
36 | +execute "hi Bold" s:GuiAttr("bold") | |
37 | +execute "hi Italic" s:GuiAttr("italic") | |
38 | +execute "hi NonText" s:GuiFg(s:silver6) s:GuiBg("bg") | |
39 | +execute "hi Visual" s:GuiFg(s:white) s:GuiBg(s:blue) | |
40 | +execute "hi StatusLine" s:GuiFg(s:white) s:GuiBg(s:silver1) s:GuiAttr("bold") | |
41 | +execute "hi StatusLineNC" s:GuiFg(s:silver2) s:GuiBg(s:silver7) s:GuiAttr("NONE") | |
42 | +execute "hi StatusLineTerm" s:GuiFg(s:white) s:GuiBg(s:red) s:GuiAttr("bold") | |
43 | +execute "hi VertSplit" s:GuiFg(s:silver9) s:GuiBg(s:silver9) s:GuiAttr("NONE") | |
44 | +execute "hi IncSearch" s:GuiFg(s:white) s:GuiBg(s:black) s:GuiAttr("none") | |
45 | +execute "hi Search" s:GuiFg(s:black) s:GuiBg(s:silver8) s:GuiAttr("NONE") | |
46 | +execute "hi MatchParen" s:GuiFg(s:blue) s:GuiBg("bg") s:GuiAttr("bold") | |
47 | +execute "hi CursorLine" s:GuiBg(s:silver9) | |
48 | +execute "hi CursorLineNr" s:GuiFg(s:silver4) s:GuiAttr("bold") | |
49 | +execute "hi LineNr" s:GuiFg(s:silver8) s:GuiAttr("bold") | |
50 | 50 | |
51 | 51 | highlight! link CursorColumn CursorLine |
52 | 52 | highlight! link SignColumn LineNr |
@@ -63,58 +63,58 @@ highlight! link TabLineSel Normal | ||
63 | 63 | highlight! link TabLineFill Normal |
64 | 64 | highlight! link TabLine Normal |
65 | 65 | |
66 | -execute 'hi TabLineSel' s:GuiAttr('underline,bold') | |
66 | +execute "hi TabLineSel" s:GuiAttr("underline,bold") | |
67 | 67 | |
68 | 68 | " Code |
69 | -execute 'hi Statement' s:GuiFg(s:red) s:GuiAttr('bold') | |
70 | -execute 'hi Conditional' s:GuiFg(s:red) s:GuiAttr('bold') | |
71 | -execute 'hi Type' s:GuiFg(s:blue) s:GuiAttr('italic') | |
72 | -execute 'hi Structure' s:GuiFg(s:red) s:GuiAttr('NONE') | |
73 | -execute 'hi StorageClass' s:GuiFg(s:red) | |
74 | -execute 'hi PreProc' s:GuiFg(s:blue) s:GuiAttr('bold') | |
75 | -execute 'hi PreCondit' s:GuiFg(s:blue) s:GuiAttr('bold') | |
76 | -execute 'hi Comment' s:GuiFg(s:silver5) | |
77 | -execute 'hi Function' s:GuiFg(s:blue) | |
78 | -execute 'hi Identifier' s:GuiFg(s:blue) | |
79 | -execute 'hi Special' s:GuiFg(s:silver1) | |
80 | -execute 'hi Constant' s:GuiFg(s:blue) | |
81 | -execute 'hi Number' s:GuiFg(s:blue) | |
82 | -execute 'hi String' s:GuiFg(s:silver4) | |
83 | -execute 'hi Title' s:GuiFg(s:black) s:GuiAttr('bold') | |
84 | -execute 'hi Todo' s:GuiFg(s:silver2) s:GuiBg(s:silver7) | |
85 | -execute 'hi Error' s:GuiFg(s:red) s:GuiBg('bg') s:GuiAttr('underline') | |
86 | -execute 'hi Directory' s:GuiFg(s:silver2) | |
87 | -execute 'hi ErrorMsg' s:GuiFg(s:red) s:GuiBg('bg') | |
88 | -execute 'hi WarningMsg' s:GuiFg(s:silver0) s:GuiBg('bg') | |
89 | -execute 'hi ModeMsg' s:GuiFg(s:blue) s:GuiBg('bg') s:GuiAttr('bold') | |
90 | -execute 'hi Question' s:GuiFg(s:silver1) s:GuiBg('bg') | |
91 | -execute 'hi QuickFixLine' s:GuiFg(s:red) s:GuiBg('bg') s:GuiAttr('bold') | |
92 | -execute 'hi qfFileName' s:GuiFg(s:blue) | |
93 | -execute 'hi qfLineNr' s:GuiFg(s:red) | |
69 | +execute "hi Statement" s:GuiFg(s:red) s:GuiAttr("bold") | |
70 | +execute "hi Conditional" s:GuiFg(s:red) s:GuiAttr("bold") | |
71 | +execute "hi Type" s:GuiFg(s:blue) s:GuiAttr("italic") | |
72 | +execute "hi Structure" s:GuiFg(s:red) s:GuiAttr("NONE") | |
73 | +execute "hi StorageClass" s:GuiFg(s:red) | |
74 | +execute "hi PreProc" s:GuiFg(s:blue) s:GuiAttr("bold") | |
75 | +execute "hi PreCondit" s:GuiFg(s:blue) s:GuiAttr("bold") | |
76 | +execute "hi Comment" s:GuiFg(s:silver5) s:GuiAttr("italic") | |
77 | +execute "hi Function" s:GuiFg(s:blue) | |
78 | +execute "hi Identifier" s:GuiFg(s:blue) | |
79 | +execute "hi Special" s:GuiFg(s:silver1) | |
80 | +execute "hi Constant" s:GuiFg(s:blue) | |
81 | +execute "hi Number" s:GuiFg(s:blue) | |
82 | +execute "hi String" s:GuiFg(s:silver4) | |
83 | +execute "hi Title" s:GuiFg(s:black) s:GuiAttr("bold") | |
84 | +execute "hi Todo" s:GuiFg(s:silver2) s:GuiBg(s:silver7) | |
85 | +execute "hi Error" s:GuiFg(s:red) s:GuiBg("bg") s:GuiAttr("underline") | |
86 | +execute "hi Directory" s:GuiFg(s:silver2) | |
87 | +execute "hi ErrorMsg" s:GuiFg(s:red) s:GuiBg("bg") | |
88 | +execute "hi WarningMsg" s:GuiFg(s:silver0) s:GuiBg("bg") | |
89 | +execute "hi ModeMsg" s:GuiFg(s:blue) s:GuiBg("bg") s:GuiAttr("bold") | |
90 | +execute "hi Question" s:GuiFg(s:silver1) s:GuiBg("bg") | |
91 | +execute "hi QuickFixLine" s:GuiFg(s:red) s:GuiBg("bg") s:GuiAttr("bold") | |
92 | +execute "hi qfFileName" s:GuiFg(s:blue) | |
93 | +execute "hi qfLineNr" s:GuiFg(s:red) | |
94 | 94 | highlight! link qfSeparator Normal |
95 | 95 | |
96 | 96 | " Filetype VIM |
97 | -execute 'hi vimCommentTitle' s:GuiFg(s:blue) s:GuiAttr('bold') | |
97 | +execute "hi vimCommentTitle" s:GuiFg(s:blue) s:GuiAttr("bold") | |
98 | 98 | |
99 | 99 | " Filetype C |
100 | -execute 'hi cCppOut' s:GuiBg(s:silver9) s:GuiAttr('italic') | |
101 | -execute 'hi cCppOutIf2' s:GuiBg(s:silver9) s:GuiAttr('italic') | |
102 | -execute 'hi cParen' s:GuiFg(s:silver3) | |
103 | -execute 'hi cBlock' s:GuiFg(s:silver3) | |
100 | +execute "hi cCppOut" s:GuiBg(s:silver9) s:GuiAttr("italic") | |
101 | +execute "hi cCppOutIf2" s:GuiBg(s:silver9) s:GuiAttr("italic") | |
102 | +execute "hi cParen" s:GuiFg(s:silver3) | |
103 | +execute "hi cBlock" s:GuiFg(s:silver3) | |
104 | 104 | |
105 | 105 | " filetype HTML |
106 | -execute 'hi htmlH1' s:GuiFg(s:blue) s:GuiAttr('bold') | |
107 | -execute 'hi htmlH2' s:GuiFg(s:blue) s:GuiAttr('bold') | |
108 | -execute 'hi htmlH3' s:GuiFg(s:blue) s:GuiAttr('bold') | |
106 | +execute "hi htmlH1" s:GuiFg(s:blue) s:GuiAttr("bold") | |
107 | +execute "hi htmlH2" s:GuiFg(s:blue) s:GuiAttr("bold") | |
108 | +execute "hi htmlH3" s:GuiFg(s:blue) s:GuiAttr("bold") | |
109 | 109 | |
110 | 110 | " markdown |
111 | -execute 'hi markdownCode' s:GuiFg(s:silver3) s:GuiBg(s:silver9) | |
112 | -execute 'hi markdownCodeBlock' s:GuiFg(s:silver2) | |
113 | -execute 'hi rstEmphasis' s:GuiFg(s:silver2) | |
114 | -execute 'hi rstStrongEmphasis' s:GuiFg(s:silver2) s:GuiAttr('bold') | |
111 | +execute "hi markdownCode" s:GuiFg(s:silver3) s:GuiBg(s:silver9) | |
112 | +execute "hi markdownCodeBlock" s:GuiFg(s:silver2) | |
113 | +execute "hi rstEmphasis" s:GuiFg(s:silver2) | |
114 | +execute "hi rstStrongEmphasis" s:GuiFg(s:silver2) s:GuiAttr("bold") | |
115 | 115 | |
116 | 116 | " Diffs |
117 | -execute 'hi DiffChange' s:GuiFg(s:white) s:GuiBg(s:blue) | |
118 | -execute 'hi DiffText' s:GuiFg(s:white) s:GuiBg(s:blue) | |
119 | -execute 'hi DiffDelete' s:GuiFg(s:red) s:GuiBg(s:red) | |
120 | -execute 'hi DiffAdd' s:GuiFg(s:silver3) s:GuiBg(s:silver8) | |
117 | +execute "hi DiffChange" s:GuiFg(s:white) s:GuiBg(s:blue) | |
118 | +execute "hi DiffText" s:GuiFg(s:white) s:GuiBg(s:blue) | |
119 | +execute "hi DiffDelete" s:GuiFg(s:red) s:GuiBg(s:red) | |
120 | +execute "hi DiffAdd" s:GuiFg(s:silver3) s:GuiBg(s:silver8) |
@@ -1,12 +1,6 @@ | ||
1 | -let FontFamily = {-> split(&gfn, ":")[0]} | |
2 | -let IncFontHeight = {-> string(str2nr(split(&gfn, ":h")[1]) + 1)} | |
3 | -let DecFontHeight = {-> string(str2nr(split(&gfn, ":h")[1]) - 1)} | |
4 | - | |
5 | -nnoremap <expr> <leader>+ ":set guifont="..FontFamily()..":h"..IncFontHeight().."<CR>" | |
6 | -nnoremap <expr> <leader>- ":set guifont="..FontFamily()..":h"..DecFontHeight().."<CR>" | |
7 | - | |
8 | -"set guifont=JetBrains\ Mono:h9 | |
9 | -set guifont=Courier_Prime:h14 | |
1 | +"set guifont=JetBrains\ Mono:h10 | |
2 | +"set guifont=Courier\ Prime:h14 | |
3 | +set guifont=Victor\ Mono:h14 linespace=5 | |
10 | 4 | set guiligatures=!\"#$%&()*+-./:<=>?@[]^_{\|~ |
11 | 5 | set guioptions=!a |
12 | 6 | set guicursor+=a:blinkon0 |
@@ -15,6 +9,13 @@ set mousemodel=popup | ||
15 | 9 | set nomousefocus |
16 | 10 | set signcolumn=yes |
17 | 11 | |
12 | +let FontFamily = {-> escape(split(&gfn, ":")[0], ' ')} | |
13 | +let IncFontHeight = {-> string(str2nr(split(&gfn, ":h")[1]) + 1)} | |
14 | +let DecFontHeight = {-> string(str2nr(split(&gfn, ":h")[1]) - 1)} | |
15 | + | |
16 | +nnoremap <expr> <leader>+ ":set guifont="..FontFamily()..":h"..IncFontHeight().."<CR>" | |
17 | +nnoremap <expr> <leader>- ":set guifont="..FontFamily()..":h"..DecFontHeight().."<CR>" | |
18 | + | |
18 | 19 | tnoremap <LeftMouse> <C-w>N |
19 | 20 | tmap <RightMouse> <C-w>N<RightMouse> |
20 | 21 |