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

Separate mappings for <BS> and <C-H>

Open Maligan opened this issue 9 years ago • 5 comments

Hello, before let me thank you for plugin :-)

In my vimrc i have mappings for cursor movement in insert mode:

inoremap <C-H> <Left>
inoremap <C-J> <Down>
inoremap <C-K> <Up>
inoremap <C-L> <Right>

This <C-H> mapping became conflicted with plugin AutoPairsDelete function, but plugin use <buffer> modifier and has greater priority. As I see there is ability to disable mappings <BS> a <C-H> together, but not separately.

Can I suggest add new settings variable witch allow disable <C-H> mapping separately.

Maligan avatar May 07 '15 10:05 Maligan

Hi there, did you find a way to solve this problem ?

valerymercury avatar Nov 19 '15 16:11 valerymercury

I'd also like to request this (might submit a PR).

In the mean time, this is an imperfect workaround you can use:

let g:AutoPairsMapBS = 0
inoremap <silent> <BS> <C-R>=AutoPairsDelete()<CR>

razor-x avatar Jan 12 '16 21:01 razor-x

This workaround somehow doesn't work for me. Any suggestions?

ilkermutlu avatar Jun 13 '16 12:06 ilkermutlu

let g:AutoPairsMapCh = 0

TylerHorth avatar Nov 03 '16 18:11 TylerHorth

let g:AutoPairsMapCh = 0

Thanks a lot for your solution! It works for me :)

shiqimei avatar Oct 05 '18 08:10 shiqimei