* Different ways to set a number option:
* & set to default value
* < set to global value
- * <xx> accept special key codes for 'wildchar'
- * c accept any non-digit for 'wildchar'
- * [-]0-9 set number
- * other error
+ * <xx> accept special key codes for 'wildchar' or 'wildcharm'
+ * ^x accept ctrl key codes for 'wildchar' or 'wildcharm'
+ * c accept any non-digit for 'wildchar' or 'wildcharm'
+ * [-]0-9 set number
+ * other error
*/
++arg;
if (nextchar == '&')
&& !VIM_ISDIGIT(*arg))))
{
value = string_to_key(arg, FALSE);
- if (value == 0 && (long *)varp != &p_wcm)
+ if (value == 0)
{
errmsg = e_invalid_argument;
goto skip;
set nomore
+const K_KENTER = -16715
+
" The terminal size is restored at the end.
" Clear out t_WS, we don't want to resize the actual terminal.
let script = [
\ 'updatecount': [[0, 1, 8, 9999], [-1]],
\ 'updatetime': [[0, 1, 8, 9999], [-1]],
\ 'verbose': [[-1, 0, 1, 8, 9999], []],
- \ 'wildcharm': [[-1, 0, 100], []],
+ \ 'wildchar': [[-1, 0, 100, 'x', '^Y', '<Esc>', '<t_xx>'],
+ \ ['', 'xxx', '<xxx>', '<Esc', '<C-C>', '<NL>', '<CR>', K_KENTER]],
+ \ 'wildcharm': [[-1, 0, 100, 'x', '^Y', '<Esc>'],
+ \ ['', 'xxx', '<xxx>', '<Esc', '<C-C>', '<NL>', '<CR>', K_KENTER]],
\ 'winheight': [[1, 10, 999], [-1, 0]],
\ 'winminheight': [[0, 1], [-1]],
\ 'winminwidth': [[0, 1, 10], [-1]],