I\'d like to know if there is a way to figure out if a key does something in vim. I know that I can use :map to see user-defined mappings, but is there somethin
:map
You can use mapcheck.:-
mapcheck
For example, I wanted to map ,i to gg=G to indented a file. To check if there is a mapping already for , i
,i
gg=G
, i
if mapcheck("\", "I") == "" |echo "no mapping"
...but this won't detect if the mapping is part of a sequence.