Kungi
Kungi

Reputation: 1536

Emacs Describe Key in vim

Is there any feature in Vim which shows me what a keyboard shortcut is bound to in the current context? Something like describe-key in emacs.

I'm trying to find out which keys i can safely rebind and which are bound to something useful.

Upvotes: 10

Views: 2680

Answers (2)

9000
9000

Reputation: 40904

The first google hit says:

is there anything like "describe-key" (EMacs) in vim ?

The simplest might be the Vim help system. For example:

:h ^X

describes Ctrl-X. You have to type "^X" as two characters, not one.

To see how a key is mapped, you can use :map <whatever key sequence>, or just :map to see all non-default bindings. Mappings of keys may contain non-trivial sequences, so you might need to look up several other keys used in the mapping with :h as said above.

Upvotes: 5

Eelvex
Eelvex

Reputation: 9153

If your key is manually mapped, you can check the mapping by evoking:

:map <keys>

if it is not, then you can check the manual:

:help <keys>

Upvotes: 15

Related Questions