mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-24 15:48:27 +00:00
Make fzf.vim separately installable
This commit is contained in:
parent
f2d8e7e3ee
commit
dc67420319
@ -27,7 +27,8 @@ function! s:fzf(args)
|
|||||||
try
|
try
|
||||||
let tf = tempname()
|
let tf = tempname()
|
||||||
let prefix = exists('g:fzf_command') ? g:fzf_command.'|' : ''
|
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
|
if !v:shell_error
|
||||||
let file = join(readfile(tf), '')
|
let file = join(readfile(tf), '')
|
||||||
if !empty(file)
|
if !empty(file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user