comparison runtime/doc/syntax.txt @ 18972:130acb903dbe

Update runtime files. Commit: https://github.com/vim/vim/commit/5666fcd0bd794dd46813824cce63a38bcae63794 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 26 14:35:26 2019 +0100 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Thu, 26 Dec 2019 14:45:08 +0100
parents 180a1c5175f6
children 9b7f90e56753
comparison
equal deleted inserted replaced
18971:d73b1dd31464 18972:130acb903dbe
77 with: > 77 with: >
78 :highlight Normal guibg=Black guifg=White 78 :highlight Normal guibg=Black guifg=White
79 For a color terminal see |:hi-normal-cterm|. 79 For a color terminal see |:hi-normal-cterm|.
80 For setting up your own colors syntax highlighting see |syncolor|. 80 For setting up your own colors syntax highlighting see |syncolor|.
81 81
82 NOTE: The syntax files on MS-DOS and Windows have lines that end in <CR><NL>. 82 NOTE: The syntax files on MS-Windows have lines that end in <CR><NL>.
83 The files for Unix end in <NL>. This means you should use the right type of 83 The files for Unix end in <NL>. This means you should use the right type of
84 file for your system. Although on MS-DOS and Windows the right format is 84 file for your system. Although on MS-Windows the right format is
85 automatically selected if the 'fileformats' option is not empty. 85 automatically selected if the 'fileformats' option is not empty.
86 86
87 NOTE: When using reverse video ("gvim -fg white -bg black"), the default value 87 NOTE: When using reverse video ("gvim -fg white -bg black"), the default value
88 of 'background' will not be set until the GUI window is opened, which is after 88 of 'background' will not be set until the GUI window is opened, which is after
89 reading the |gvimrc|. This will cause the wrong default highlighting to be 89 reading the |gvimrc|. This will cause the wrong default highlighting to be
4825 mentioned for the default values. See |:verbose-cmd| for more information. 4825 mentioned for the default values. See |:verbose-cmd| for more information.
4826 4826
4827 *highlight-args* *E416* *E417* *E423* 4827 *highlight-args* *E416* *E417* *E423*
4828 There are three types of terminals for highlighting: 4828 There are three types of terminals for highlighting:
4829 term a normal terminal (vt100, xterm) 4829 term a normal terminal (vt100, xterm)
4830 cterm a color terminal (MS-DOS console, color-xterm, these have the "Co" 4830 cterm a color terminal (MS-Windows console, color-xterm, these have the "Co"
4831 termcap entry) 4831 termcap entry)
4832 gui the GUI 4832 gui the GUI
4833 4833
4834 For each type the highlighting can be given. This makes it possible to use 4834 For each type the highlighting can be given. This makes it possible to use
4835 the same syntax file on all terminals, and use the optimal highlighting. 4835 the same syntax file on all terminals, and use the optimal highlighting.
4912 unpredictable. See your xterm documentation for the defaults. The 4912 unpredictable. See your xterm documentation for the defaults. The
4913 colors for a color-xterm can be changed from the .Xdefaults file. 4913 colors for a color-xterm can be changed from the .Xdefaults file.
4914 Unfortunately this means that it's not possible to get the same colors 4914 Unfortunately this means that it's not possible to get the same colors
4915 for each user. See |xterm-color| for info about color xterms. 4915 for each user. See |xterm-color| for info about color xterms.
4916 4916
4917 The MSDOS standard colors are fixed (in a console window), so these 4917 The MS-Windows standard colors are fixed (in a console window), so
4918 have been used for the names. But the meaning of color names in X11 4918 these have been used for the names. But the meaning of color names in
4919 are fixed, so these color settings have been used, to make the 4919 X11 are fixed, so these color settings have been used, to make the
4920 highlighting settings portable (complicated, isn't it?). The 4920 highlighting settings portable (complicated, isn't it?). The
4921 following names are recognized, with the color number used: 4921 following names are recognized, with the color number used:
4922 4922
4923 *cterm-colors* 4923 *cterm-colors*
4924 NR-16 NR-8 COLOR NAME ~ 4924 NR-16 NR-8 COLOR NAME ~
4979 termcap entry |t_op|. If this doesn't work correctly, try setting the 4979 termcap entry |t_op|. If this doesn't work correctly, try setting the
4980 't_op' option in your .vimrc. 4980 't_op' option in your .vimrc.
4981 *E419* *E420* 4981 *E419* *E420*
4982 When Vim knows the normal foreground and background colors, "fg" and 4982 When Vim knows the normal foreground and background colors, "fg" and
4983 "bg" can be used as color names. This only works after setting the 4983 "bg" can be used as color names. This only works after setting the
4984 colors for the Normal group and for the MS-DOS console. Example, for 4984 colors for the Normal group and for the MS-Windows console. Example,
4985 reverse video: > 4985 for reverse video: >
4986 :highlight Visual ctermfg=bg ctermbg=fg 4986 :highlight Visual ctermfg=bg ctermbg=fg
4987 < Note that the colors are used that are valid at the moment this 4987 < Note that the colors are used that are valid at the moment this
4988 command are given. If the Normal group colors are changed later, the 4988 command are given. If the Normal group colors are changed later, the
4989 "fg" and "bg" colors will not be adjusted. 4989 "fg" and "bg" colors will not be adjusted.
4990 4990