10

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.

Kungi
  • 1,477
  • 1
  • 18
  • 34
  • There is some information here that might help: http://stackoverflow.com/questions/4778715/is-there-a-way-to-list-all-the-default-normal-visual-and-insert-mode-bindings-in – Jeremiah Willcock Feb 20 '11 at 19:14
  • Cool thank you. That is very near at what I wanted to do. How do I efficiently search and group this output? --> jep there is see the solution. – Kungi Feb 20 '11 at 19:28

2 Answers2

15

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>
Eelvex
  • 8,975
  • 26
  • 42
5

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.

9000
  • 39,899
  • 9
  • 66
  • 104