Be more conservative about unmapping

Restrict unmapping to check for '^<Plug>delimitMate' (case sensitive)
instead of 'delimitMate' (case insensitive). This should make it less
likely to accidentally trigger on custom user keybinds that reference
delimitMate.
This commit is contained in:
Kevin Ballard
2014-12-29 18:37:51 -08:00
parent fe1983cfa1
commit 6f4f1b06d3

View File

@@ -193,7 +193,7 @@ function! s:Unmap() " {{{
\ ['<Home>', '<End>', '<PageUp>', '<PageDown>', '<S-Down>', '<S-Up>', '<C-G>g']
for map in imaps
if maparg(map, "i") =~? 'delimitMate'
if maparg(map, "i") =~# '^<Plug>delimitMate'
if map == '|'
let map = '<Bar>'
endif