Merge pull request #211 from mhinz/accept-lowercase-plug

Ignore case for "<Plug>"
This commit is contained in:
Junegunn Choi 2015-04-12 21:08:19 +09:00
commit 42300e0c4d

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