You can use mapcheck .: -
For example, I wanted to match <CR> ,i with gg=G with the indented file. To check if there is a mapping already for <CR> , i
if mapcheck("\<CR>", "I") == "" |echo "no mapping"
... but this will not determine if the mapping is part of the sequence.
Moha the almighty camel Nov 01. '13 at 12:34 2013-11-01 12:34
source share