From 53cc8a53d928e0c6ea577dfccf0da4d31855ee91 Mon Sep 17 00:00:00 2001 From: Jacob Niehus Date: Sun, 7 Dec 2014 13:19:09 -0700 Subject: [PATCH] Check for full match of command name --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))