Skip to content
Snippets Groups Projects
Commit dc674203 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Make fzf.vim separately installable

parent f2d8e7e3
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment