Ignore case for "<Plug>"

This commit is contained in:
Marco Hinz 2015-04-12 13:45:27 +02:00
parent 481a400ba4
commit 13de76383d

View File

@ -165,7 +165,7 @@ function! plug#end()
if has_key(plug, 'on')
let s:triggers[name] = { 'map': [], 'cmd': [] }
for cmd in s:to_a(plug.on)
if cmd =~ '^<Plug>.\+'
if cmd =~? '^<Plug>.\+'
if empty(mapcheck(cmd)) && empty(mapcheck(cmd, 'i'))
call s:assoc(lod.map, cmd, name)
endif