This fixes an issue that I'm having defining key_maps for insertmode.
It also creates a test case for the problem. Unfortunately, the test case fails for a different reason when run from the unittests. (It seems that keys('aaaa') is only sending 'a' three times to vim instead of four times. But I'm not sure of why.) When I define the function in my .vimrc.py, the key_mapping seems to work just fine (Although, I don't have a call to keys() in my .vimrc.py)
This fixes an issue that I'm having defining key_maps for insertmode.
It also creates a test case for the problem. Unfortunately, the test case fails for a different reason when run from the unittests. (It seems that keys('aaaa') is only sending 'a' three times to vim instead of four times. But I'm not sure of why.) When I define the function in my .vimrc.py, the key_mapping seems to work just fine (Although, I don't have a call to keys() in my .vimrc.py)