diff --git a/plug.vim b/plug.vim index d100b22..f3bb8b7 100644 --- a/plug.vim +++ b/plug.vim @@ -115,8 +115,10 @@ function! plug#end() let commands = type(plug.on) == 1 ? [plug.on] : plug.on for cmd in commands if cmd =~ '^.\+' - execute printf( - \ "noremap %s :call lod_map(%s, %s)", cmd, string(cmd), string(plug)) + if empty(mapcheck(cmd)) + execute printf( + \ "noremap %s :call lod_map(%s, %s)", cmd, string(cmd), string(plug)) + endif elseif !exists(':'.cmd) execute printf( \ "command! -nargs=* -bang %s call s:lod_cmd(%s, '', , %s)",