On Thu, 1 May 2025 at 17:54, Chris Green <[email protected]> wrote:

> Is there any way to simplify/abbreviate the output of commands like
> "show-bindings"?
>
> I'd like, for example, to be able to see a list of all bindings
> configured in insert mode without the description and without
> alternative command names such that there is one command per line with
> the bound key.  E.g. something like:-
>
> "append-chars"                  a
> "append-chars-at-eol"           A
> "back-page"                     ^B      #-p
> "back-paragraph"                {
>

Recall that the output of show-bindings is just a buffer, you can run
regular vile commands on it:

  :show-bindings
  :g/^"[^"]*"\t*[^\t]/p

Should give you roughly what you have above (show all lines starting with a
quoted string, followed by something after a series of tabs), although note
that those are not insert mode bindings.

I think that  you probably want one or more of:

  :describe-all-keys
  :describe-all-cmdmode-keys
  :describe-all-insmode-keys

--bod

Reply via email to