From dade777e6dad6a318630d7ce26b9761761522c40 Mon Sep 17 00:00:00 2001 From: sangwook <2sangwook@gmail.com> Date: Wed, 8 Feb 2017 11:58:58 +0900 Subject: [PATCH] Check for exact command name (#306) --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index b7955a7..8325956 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -34,7 +34,7 @@ function! s:defs(commands) endif for command in a:commands let name = ':'.prefix.matchstr(command, '\C[A-Z]\S\+') - if !exists(name) + if 2 != exists(name) execute substitute(command, '\ze\C[A-Z]', prefix, '') endif endfor