diff --git a/plug.vim b/plug.vim index 6d44bd1..a1b5a56 100644 --- a/plug.vim +++ b/plug.vim @@ -171,7 +171,7 @@ function! plug#end() endif call add(s:triggers[name].map, cmd) elseif cmd =~ '^[A-Z]' - if !exists(':'.cmd) + if exists(':'.cmd) != 2 execute printf( \ 'command! -nargs=* -range -bang %s call s:lod_cmd(%s, "", , , , %s)', \ cmd, string(cmd), string(name))