tmsvg / pear-tree

A Vim auto-pair plugin that supports multi-character pairs, intelligent matching, and more
MIT License
392 stars 12 forks source link

Arrow left and right key turn into enter and type C or D character #21

Closed putraeka closed 5 years ago

putraeka commented 5 years ago

Arrow left and right key turn into enter and type C or D character

but when I commented at these settings, my arrow keys work fine again

"imap (PearTreeBackspace) "imap (PearTreeExpand) "imap (PearTreeFinishExpansion)

tmsvg commented 5 years ago

This is normally caused by mapping the <Esc> key to something in insert mode. While Pear Tree does map <Esc> by default, it uses a workaround that is supposed to prevent this issue.

tmsvg commented 5 years ago

I'm closing this issue since it seems to stem from remapping <Esc>. Pear Tree maps it by default, but if you must remap it in your own config, you could take a look at the workaround used to prevent arrow keys from breaking.