Make fzf.vim separately installable

This commit is contained in:
Junegunn Choi 2013-11-05 13:45:23 +09:00
parent f2d8e7e3ee
commit dc67420319
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ function! s:fzf(args)
try
let tf = tempname()
let prefix = exists('g:fzf_command') ? g:fzf_command.'|' : ''
execute "silent !".prefix."/usr/bin/env ruby ".s:exec." ".a:args." > ".tf
let fzf = executable(s:exec) ? s:exec : 'fzf'
execute "silent !".prefix.fzf." ".a:args." > ".tf
if !v:shell_error
let file = join(readfile(tf), '')
if !empty(file)