Identify keypress action in vim
listed in answer
ANSWER:
You can identify the mapping and its source via the different map commands. For example: :verbose map could output something like this:
v * :m-2gv=gv
Last set from ~/.vimrc
n * :m-2==
Last set from ~/.vimrc
If you have some time to kill have a look at the Vim Tips Wiki on the topic of key mappings. Their tutorial covers all you need.
If you’ve got Ruby on your machine I can highly recommend the vimdb gem.
by Sebastian Stumpf from http://superuser.com/questions/413549

New Comments