Skip to content
Myr

[vim] Escape % and # when running source command with :!

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 148f214 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
216 unmodified lines
217 let command = printf(fmt, "'".substitute(a:command, "'", "'\"'\"'", 'g')."'")218 else219 let command = a:command220 endif221 execute 'silent !'.command221 execute 'silent !'.escape(command, '%#')222 redraw!223 if v:shell_error224 " Do not print error message on exit status 1225 if v:shell_error > 1
174 unmodified lines