auto-pairs icon indicating copy to clipboard operation
auto-pairs copied to clipboard

The plugins breaks keymap

Open avli opened this issue 9 years ago • 6 comments

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.

avli avatar Oct 22 '14 16:10 avli

I can not write the Swedish letter "å" when I have this plugin installed, it could be related. Capital "Å" works fine though.

lindhe avatar Dec 05 '14 18:12 lindhe

You could change the shortcut in .vimrc, add code

let g:AutoPairsShortcutFastWrap='' 

which is <M-e> by default Related issue #88

jiangmiao avatar Dec 10 '14 18:12 jiangmiao

I can confirm that this solution worked for me!

lindhe avatar Dec 11 '14 22:12 lindhe

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.

andbar-ru avatar Nov 26 '16 21:11 andbar-ru

@jiangmiao thank you for the great plugin. I would appreciate if you could take a look on the small fix for this issue #227

Felixoid avatar Jan 12 '19 15:01 Felixoid

Solved :-j

Felixoid avatar Jan 26 '19 19:01 Felixoid