From 8fb31e1b4d25ef20d039e919e8d7712d2ad6a96c Mon Sep 17 00:00:00 2001 From: Junegunn Choi <junegunn.c@gmail.com> Date: Mon, 24 Aug 2015 01:52:16 +0900 Subject: [PATCH] [vim] Escape % and # when running source command with :! --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index a350c291..58e481f1 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -218,7 +218,7 @@ function! s:execute(dict, command, temps) else let command = a:command endif - execute 'silent !'.command + execute 'silent !'.escape(command, '%#') redraw! if v:shell_error " Do not print error message on exit status 1 -- GitLab