auto-pairs
auto-pairs copied to clipboard
The plugins breaks keymap
First of all, thank you for the useful plugin. Let me report about the issue I've faced.
I have the following setting in my .vimrc
:
set keymap=russian-jcukenwin
which allows me to change Vim keymap to Russian one by pressing C-^
. Unfortunately, the plugin affects particular keys somehow. To be more precisely it breaks the keys, that mean brackets and quotes in English keyboard layout. If I disable auto-pairs plugin everything is ok. My guess, the issue is the plugin rebinds some keys after my keymap settings are loaded. I think so because if I do :set keymap=russian-jcukenwin
after Vim is loaded, there is no such an issue.
Do you have any thoughts? Thanks again.
I can not write the Swedish letter "å" when I have this plugin installed, it could be related. Capital "Å" works fine though.
You could change the shortcut in .vimrc, add code
let g:AutoPairsShortcutFastWrap=''
which is <M-e>
by default
Related issue #88
I can confirm that this solution worked for me!
I added file ~/.vim/after/plugin/auto-pairs.vim with code:
function RusKeymap()
setlocal keymap=russian-jcukenwin
setlocal iminsert=0
setlocal imsearch=-1
endfunction
autocmd BufEnter * :call RusKeymap()
And this problem was circumvented.
@jiangmiao thank you for the great plugin. I would appreciate if you could take a look on the small fix for this issue #227
Solved :-j