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 de开发者_如何学编程scribe-key in emacs.
I'm trying to find out which keys i can safely rebind and which are bound to something useful.
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>
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.
精彩评论