amoffat / snake

Full Python Scripting in Vim
1.41k stars 56 forks source link

Insert key map problems #29

Open abadger opened 5 years ago

abadger commented 5 years ago

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)