vim-patch:8.2.3522: cannot use \x and \u when setting 'listchars' (#16049)

Problem:    Cannot use \x and \u when setting 'listchars'.
Solution:   Support hex and unicode in hex form. (closes vim/vim#9006)
93ff6720fe
This commit is contained in:
zeertzjq
2021-11-18 09:55:59 +08:00
committed by GitHub
parent eb3d59126e
commit 5ff972cafe
4 changed files with 61 additions and 15 deletions

View File

@@ -3792,6 +3792,13 @@ A jump table for the options with a short description can be found at |Q_op|.
The characters ':' and ',' should not be used. UTF-8 characters can
be used. All characters must be single width.
Each character can be specified as hex: >
set listchars=eol:\\x24
set listchars=eol:\\u21b5
set listchars=eol:\\U000021b5
< Note that a double backslash is used. The number of hex characters
must be exactly 2 for \\x, 4 for \\u and 8 for \\U.
Examples: >
:set lcs=tab:>-,trail:-
:set lcs=tab:>-,eol:<,nbsp:%