Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update lifted restrictions on cmap #886

Merged
merged 1 commit into from
Aug 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
5 changes: 3 additions & 2 deletions docstring.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lf.1
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down