aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/options.txt
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-10-02 07:39:28 +0800
committerGitHub <noreply@github.com>2024-10-01 23:39:28 +0000
commit2168d772b864fd05109fb4299e409d4bdc1df39d (patch)
treecb1fe68d2831a0315faa433a7605911b798d62f1 /runtime/doc/options.txt
parentd983599613ae19190369c0577a409ede3b1ded38 (diff)
downloadrneovim-2168d772b864fd05109fb4299e409d4bdc1df39d.tar.gz
rneovim-2168d772b864fd05109fb4299e409d4bdc1df39d.tar.bz2
rneovim-2168d772b864fd05109fb4299e409d4bdc1df39d.zip
vim-patch:9.1.0752: can set 'cedit' to an invalid value (#30616)
Problem: can set cedit to an invalid value Solution: Check that the value is a valid key name (Milly) closes: vim/vim#15778 https://github.com/vim/vim/commit/25732435c56d762abb260499680939bd8882c708 Co-authored-by: Milly <milly.ca@gmail.com>
Diffstat (limited to 'runtime/doc/options.txt')
-rw-r--r--runtime/doc/options.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 53847cf36d..2a8eb50acd 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1276,9 +1276,10 @@ A jump table for the options with a short description can be found at |Q_op|.
The key used in Command-line Mode to open the command-line window.
Only non-printable keys are allowed.
The key can be specified as a single character, but it is difficult to
- type. The preferred way is to use the <> notation. Examples: >vim
- exe "set cedit=\<C-Y>"
- exe "set cedit=\<Esc>"
+ type. The preferred way is to use |key-notation| (e.g. <Up>, <C-F>) or
+ a letter preceded with a caret (e.g. `^F` is CTRL-F). Examples: >vim
+ set cedit=^Y
+ set cedit=<Esc>
< |Nvi| also has this option, but it only uses the first character.
See |cmdwin|.