Ignore case for "<Plug>"
This commit is contained in:
parent
481a400ba4
commit
13de76383d
2
plug.vim
2
plug.vim
|
@ -165,7 +165,7 @@ function! plug#end()
|
||||||
if has_key(plug, 'on')
|
if has_key(plug, 'on')
|
||||||
let s:triggers[name] = { 'map': [], 'cmd': [] }
|
let s:triggers[name] = { 'map': [], 'cmd': [] }
|
||||||
for cmd in s:to_a(plug.on)
|
for cmd in s:to_a(plug.on)
|
||||||
if cmd =~ '^<Plug>.\+'
|
if cmd =~? '^<Plug>.\+'
|
||||||
if empty(mapcheck(cmd)) && empty(mapcheck(cmd, 'i'))
|
if empty(mapcheck(cmd)) && empty(mapcheck(cmd, 'i'))
|
||||||
call s:assoc(lod.map, cmd, name)
|
call s:assoc(lod.map, cmd, name)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user