[vim] Explicitly set source to FZF_DEFAULT_COMMAND

Helps when your `$SHELL` is slow.

Close #552.
This commit is contained in:
Junegunn Choi
2016-04-24 17:59:32 +09:00
parent d86cee2a69
commit 095f31b316

View File

@@ -121,6 +121,10 @@ try
throw v:exception throw v:exception
endtry endtry
if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND)
let dict.source = $FZF_DEFAULT_COMMAND
endif
if has_key(dict, 'source') if has_key(dict, 'source')
let source = dict.source let source = dict.source
let type = type(source) let type = type(source)