From 62e01a2a62ac2d4a8ee4c87723f689516e710828 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 1 Sep 2015 01:13:35 +0900 Subject: [PATCH] [vim] Escape newline character when running fzf with :! Fixes Helptags! command from fzf.vim --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index f0461b20..65b4aff7 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -224,7 +224,7 @@ function! s:execute(dict, command, temps) else let command = a:command endif - execute 'silent !'.escape(command, '%#') + execute 'silent !'.escape(substitute(command, '\n', '\\n', 'g'), '%#') redraw! if v:shell_error " Do not print error message on exit status 1