mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
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
25732435c5
Co-authored-by: Milly <milly.ca@gmail.com>
This commit is contained in:
@@ -996,9 +996,10 @@ return {
|
||||
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|.
|
||||
]=],
|
||||
|
Reference in New Issue
Block a user