diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2013-11-05 13:45:23 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2013-11-05 13:45:23 +0900 |
commit | dc674203194bce5940dc950b05e423274bf0b906 (patch) | |
tree | c369fe77a72793123f7d968c07a443dc69bfe924 | |
parent | f2d8e7e3ee726ff7c5bfe51fd52c7ed46077b806 (diff) |
Make fzf.vim separately installable
-rw-r--r-- | plugin/fzf.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 685386e3..70664038 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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) |