auto-pairs
auto-pairs copied to clipboard
Separate mappings for <BS> and <C-H>
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.
Hi there, did you find a way to solve this problem ?
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>
This workaround somehow doesn't work for me. Any suggestions?
let g:AutoPairsMapCh = 0
let g:AutoPairsMapCh = 0
Thanks a lot for your solution! It works for me :)