summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-08-24 01:52:16 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-08-24 01:52:16 +0900
commit8fb31e1b4d25ef20d039e919e8d7712d2ad6a96c (patch)
tree9df3c82ef26f8f78f84e4896c361ca9742ca5ac4
parent148f21415a9d2019617d3620e661caf57a677ade (diff)
[vim] Escape % and # when running source command with :!
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
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