diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-26 15:31:29 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-29 15:51:04 +0800 |
commit | d531ef6813919dd6df8ca6927cd99ec3c0a65635 (patch) | |
tree | 96d62d121e5744fd7504ff007e6ea025561e83f7 /runtime | |
parent | abe91e1efec84c47c03a69ab8a998bb16f628084 (diff) | |
download | rneovim-d531ef6813919dd6df8ca6927cd99ec3c0a65635.tar.gz rneovim-d531ef6813919dd6df8ca6927cd99ec3c0a65635.tar.bz2 rneovim-d531ef6813919dd6df8ca6927cd99ec3c0a65635.zip |
vim-patch:8.2.0867: using \{xxx} for encoding a modifier is not nice
Problem: Using \{xxx} for encoding a modifier is not nice.
Solution: Use \<*xxx> instead, since it's the same as \<xxx> but producing a
different code.
https://github.com/vim/vim/commit/fccd93f0917234b962ce07d1df3adf9d7105936f
Use this notation in langmap_spec.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 7f62b7621a..c6319c717a 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1325,8 +1325,8 @@ A string constant accepts these special characters: To use the double quote character it must be escaped: "<M-\">". Don't use <Char-xxxx> to get a UTF-8 character, use \uxxxx as mentioned above. -\{xxx} like \<xxx> but prepends a modifier instead of including it in the - character. E.g. "\<C-w>" is one character 0x17 while "\{C-w}" is four +\<*xxx> Like \<xxx> but prepends a modifier instead of including it in the + character. E.g. "\<C-w>" is one character 0x17 while "\<*C-w>" is four bytes: 3 for the CTRL modifier and then character "W". Note that "\xff" is stored as the byte 255, which may be invalid in some |