Skip to content
This repository was archived by the owner on Jun 24, 2023. It is now read-only.

Insert key map problems#29

Open
abadger wants to merge 2 commits into
amoffat:masterfrom
abadger:insert-key-map-problems
Open

Insert key map problems#29
abadger wants to merge 2 commits into
amoffat:masterfrom
abadger:insert-key-map-problems

Conversation

@abadger
Copy link
Copy Markdown

@abadger abadger commented Mar 21, 2019

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)

abadger added 2 commits March 20, 2019 17:01
This shows that there is some problems with key_map for INSERT_MODE.

Unfortunately, the unittests fail in a different way than when I attempt
to do the same thing in my .vimrc....
This fixes the problem I see when I attempt to write an insert mode key
map in my .vimrc.py.

That problem is that the text of the map (
:python3 snake.dispatch_mapped_function(140292554737728) )

is inserted into the buffer instead of leaving insert mode, running the
text of the map, and then returning to insert mode.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant