docs: update lifted restrictions on cmap (#886)

This commit is contained in:
ferreum 2022-08-06 14:53:26 +02:00 committed by GitHub
parent e03143299d
commit b0cb9268d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

3
doc.go
View File

@ -921,9 +921,10 @@ Command 'map' is used to bind a key to a command which can be builtin command, c
map i $less $f # shell command
map U !du -csh * # waiting shell command
Command 'cmap' is used to bind a key to a command line command which can only be one of the builtin commands:
Command 'cmap' is used to bind a key on the command line to a command line command or any other command:
cmap <c-g> cmd-escape
cmap <a-i> set incsearch!
You can delete an existing binding by leaving the expression empty:

View File

@ -995,10 +995,11 @@ command, custom command, or shell command:
map i $less $f # shell command
map U !du -csh * # waiting shell command
Command 'cmap' is used to bind a key to a command line command which can
only be one of the builtin commands:
Command 'cmap' is used to bind a key on the command line to a command line
command or any other command:
cmap <c-g> cmd-escape
cmap <a-i> set incsearch!
You can delete an existing binding by leaving the expression empty:

3
lf.1
View File

@ -1128,10 +1128,11 @@ Command 'map' is used to bind a key to a command which can be builtin command, c
map U !du -csh * # waiting shell command
.EE
.PP
Command 'cmap' is used to bind a key to a command line command which can only be one of the builtin commands:
Command 'cmap' is used to bind a key on the command line to a command line command or any other command:
.PP
.EX
cmap <c-g> cmd-escape
cmap <a-i> set incsearch!
.EE
.PP
You can delete an existing binding by leaving the expression empty: