views:

20

answers:

0

I want to prevent *noremap command from remapping an existing sequence, but only if this sequence is local to buffer:

noremap a b
" Will fail, must succeed
noremap <buffer> <unique> a c

noremap <buffer> a b
" Will fail, OK
noremap <unique> <buffer> a c

noremap a b
noremap <buffer> a c
" Will fail, OK
noremap <unique> <buffer> a d