From 095f31b31691577641894b1942b316514ae23f3f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 24 Apr 2016 17:59:32 +0900 Subject: [PATCH] [vim] Explicitly set source to FZF_DEFAULT_COMMAND Helps when your `$SHELL` is slow. Close #552. --- plugin/fzf.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 43d5059a..526f245e 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -121,6 +121,10 @@ try throw v:exception endtry + if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND) + let dict.source = $FZF_DEFAULT_COMMAND + endif + if has_key(dict, 'source') let source = dict.source let type = type(source)