comparison runtime/doc/usr_06.txt @ 27036:3e661b0cf500

Update runtime files Commit: https://github.com/vim/vim/commit/2f0936cb9a2eb026acac03e6a8fd0b2a5d97508b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 8 21:51:59 2022 +0000 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Jan 2022 23:00:06 +0100
parents babd9f1dbe12
children f8116058ca76
comparison
equal deleted inserted replaced
27035:5232c68bb21d 27036:3e661b0cf500
187 readable and look nice. These aren't the only colors available to you though. 187 readable and look nice. These aren't the only colors available to you though.
188 You can specify #rrggbb hex colors and you can define new names for hex 188 You can specify #rrggbb hex colors and you can define new names for hex
189 colors in |v:colornames| like so: > 189 colors in |v:colornames| like so: >
190 190
191 let v:colornames['mine_red'] = '#aa0000' 191 let v:colornames['mine_red'] = '#aa0000'
192 < 192
193 If you are authoring a color scheme for others to use, it is important 193 If you are authoring a color scheme for others to use, it is important
194 to define these colors only when they do not exist: > 194 to define these colors only when they do not exist: >
195 195
196 call extend(v:colornames, {'mine_red': '#aa0000'}, 'keep') 196 call extend(v:colornames, {'mine_red': '#aa0000'}, 'keep')
197 197
198 This allows users of the color scheme to override the precise definition of 198 This allows users of the color scheme to override the precise definition of
199 that color prior to loading your color scheme. For example, in a |.vimrc| 199 that color prior to loading your color scheme. For example, in a |.vimrc|
200 file: 200 file: >
201 201
202 runtime colors/lists/css_colors.vim 202 runtime colors/lists/css_colors.vim
203 let v:colornames['your_red'] = v:colornames['css_red'] 203 let v:colornames['your_red'] = v:colornames['css_red']
204 colorscheme yourscheme 204 colorscheme yourscheme
205 205