jiangmiao / auto-pairs

Vim plugin, insert or delete brackets, parens, quotes in pair
http://www.vim.org/scripts/script.php?script_id=3599
4.11k stars 373 forks source link

Fix breaking of keymap behavior #227

Closed Felixoid closed 5 years ago

Felixoid commented 5 years ago

With this workaround, the keymap is reset during the plugin init and works fine again.

The minimal config to check:

set keymap=russian-jcukenwin
set iminsert=0
set imsearch=0

Steps to reproduce:

  1. check out the plugin
  2. enter into the insert mode, change the layout with ctrl+^
  3. press the keys: '`"[{

Expected behavior

The output is эёЭхХ

Actual behavior

The output is '`"[{}]"`'

This PR is fixing #93

jiangmiao commented 5 years ago

Thank you!