Mercurial > vim
comparison runtime/doc/syntax.txt @ 20619:68c206d3a251 v8.2.0863
patch 8.2.0863: cannot set a separate color for underline/undercurl
Commit: https://github.com/vim/vim/commit/e023e88bed3f2e0a7ea4cf10cac2de80bc9c271c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 31 16:42:30 2020 +0200
patch 8.2.0863: cannot set a separate color for underline/undercurl
Problem: Cannot set a separate color for underline/undercurl.
Solution: Add the t_AU and t_8u termcap codes. (Timur Celik, closes https://github.com/vim/vim/issues/6011)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 31 May 2020 16:45:03 +0200 |
parents | d4deb2e50667 |
children | 99b6e6bf48bf |
comparison
equal
deleted
inserted
replaced
20618:8b79d6353530 | 20619:68c206d3a251 |
---|---|
4899 with coloring. To be portable, use only one of "cterm=" OR "ctermfg=" | 4899 with coloring. To be portable, use only one of "cterm=" OR "ctermfg=" |
4900 OR "ctermbg=". | 4900 OR "ctermbg=". |
4901 | 4901 |
4902 ctermfg={color-nr} *highlight-ctermfg* *E421* | 4902 ctermfg={color-nr} *highlight-ctermfg* *E421* |
4903 ctermbg={color-nr} *highlight-ctermbg* | 4903 ctermbg={color-nr} *highlight-ctermbg* |
4904 ctermul={color-nr} *highlight-ctermul* | |
4905 These give the foreground (ctermfg), background (ctermbg) and | |
4906 underline (ctermul) color to use in the terminal. | |
4907 | |
4904 The {color-nr} argument is a color number. Its range is zero to | 4908 The {color-nr} argument is a color number. Its range is zero to |
4905 (not including) the number given by the termcap entry "Co". | 4909 (not including) the number given by the termcap entry "Co". |
4906 The actual color with this number depends on the type of terminal | 4910 The actual color with this number depends on the type of terminal |
4907 and its settings. Sometimes the color also depends on the settings of | 4911 and its settings. Sometimes the color also depends on the settings of |
4908 "cterm". For example, on some systems "cterm=bold ctermfg=3" gives | 4912 "cterm". For example, on some systems "cterm=bold ctermfg=3" gives |
4976 | 4980 |
4977 When you have set "ctermfg" or "ctermbg" for the Normal group, Vim | 4981 When you have set "ctermfg" or "ctermbg" for the Normal group, Vim |
4978 needs to reset the color when exiting. This is done with the "op" | 4982 needs to reset the color when exiting. This is done with the "op" |
4979 termcap entry |t_op|. If this doesn't work correctly, try setting the | 4983 termcap entry |t_op|. If this doesn't work correctly, try setting the |
4980 't_op' option in your .vimrc. | 4984 't_op' option in your .vimrc. |
4981 *E419* *E420* | 4985 *E419* *E420* *E453* |
4982 When Vim knows the normal foreground and background colors, "fg" and | 4986 When Vim knows the normal foreground, background and underline colors, |
4983 "bg" can be used as color names. This only works after setting the | 4987 "fg", "bg" and "ul" can be used as color names. This only works after |
4984 colors for the Normal group and for the MS-Windows console. Example, | 4988 setting the colors for the Normal group and for the MS-Windows |
4985 for reverse video: > | 4989 console. Example, for reverse video: > |
4986 :highlight Visual ctermfg=bg ctermbg=fg | 4990 :highlight Visual ctermfg=bg ctermbg=fg |
4987 < Note that the colors are used that are valid at the moment this | 4991 < 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 | 4992 command are given. If the Normal group colors are changed later, the |
4989 "fg" and "bg" colors will not be adjusted. | 4993 "fg" and "bg" colors will not be adjusted. |
4990 | 4994 |