From a847fe875413ac0d35815d67fea3e03a6c0cb2ff Mon Sep 17 00:00:00 2001 From: Prabir Shrestha Date: Mon, 6 Feb 2017 21:42:08 -0800 Subject: [PATCH] Use "type" instead of "cat" on windows (#836) --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 5d1ed2f4..1225cec3 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -304,7 +304,7 @@ try elseif type == 3 let temps.input = tempname() call writefile(source, temps.input) - let prefix = 'cat '.s:shellesc(temps.input).'|' + let prefix = (s:is_win ? 'type ' : 'cat ').s:shellesc(temps.input).'|' else throw 'invalid source type' endif