From 76d3f6d2489951929b06fcab81b961c7e92425bb Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 19 Feb 2017 20:47:44 +0900 Subject: [PATCH] [vim] Escape ! when using :! to execute command - call fzf#run({'source': "echo '!'"}) - call fzf#run({'source': "echo '!'", 'down': '40%'}) Close https://github.com/junegunn/fzf.vim/issues/315 --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index ba2414e..526c6e9 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -451,7 +451,7 @@ function! s:execute(dict, command, use_height, temps) abort let stdin = has_key(a:dict, 'source') ? '' : '< /dev/tty' call system(printf('tput cup %d > /dev/tty; tput cnorm > /dev/tty; %s %s 2> /dev/tty', &lines, command, stdin)) else - execute 'silent !'.command + execute 'silent !'.escape(command, '!') endif let exit_status = v:shell_error redraw!