From 6ad18f5fb866f8ceaa3dd3d2e1e50077852d9a06 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 26 Nov 2016 12:22:55 +0900 Subject: [PATCH] Ignore trailing ! in proxy command name Close #557 --- plug.vim | 1 + test/workflow.vader | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index b0f5bc2..e8ca48b 100644 --- a/plug.vim +++ b/plug.vim @@ -225,6 +225,7 @@ function! plug#end() endif call add(s:triggers[name].map, cmd) elseif cmd =~# '^[A-Z]' + let cmd = substitute(cmd, '!*$', '', '') if exists(':'.cmd) != 2 call s:assoc(lod.cmd, cmd, name) endif diff --git a/test/workflow.vader b/test/workflow.vader index 1c176a4..92d790f 100644 --- a/test/workflow.vader +++ b/test/workflow.vader @@ -471,7 +471,7 @@ Execute (PlugDiff): Execute (Trying to execute on-demand commands when plugin is not installed): call ReloadPlug() call plug#begin() - Plug 'junegunn/vim-easy-align', { 'on': ['EasyAlign', 'LiveEasyAlign'] } + Plug 'junegunn/vim-easy-align', { 'on': ['EasyAlign', 'LiveEasyAlign!'] } call plug#end() Assert exists(':EasyAlign')