From 8a0ab20a70954a5957a648a77a64e05013fbdf9a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 7 Jan 2015 01:14:35 +0900 Subject: [PATCH] Update vim plugin to use Go binary --- plugin/fzf.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index db3c649b..22fb4cc9 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -1,4 +1,4 @@ -" Copyright (c) 2014 Junegunn Choi +" Copyright (c) 2015 Junegunn Choi " " MIT License " @@ -25,6 +25,7 @@ let s:min_tmux_width = 10 let s:min_tmux_height = 3 let s:default_tmux_height = '40%' let s:launcher = 'xterm -e bash -ic %s' +let s:fzf_go = expand(':h:h').'/bin/fzf' let s:fzf_rb = expand(':h:h').'/fzf' let s:cpo_save = &cpo @@ -34,7 +35,8 @@ function! s:fzf_exec() if !exists('s:exec') call system('type fzf') if v:shell_error - let s:exec = executable(s:fzf_rb) ? s:fzf_rb : '' + let s:exec = executable(s:fzf_go) ? + \ s:fzf_go : (executable(s:fzf_rb) ? s:fzf_rb : '') else let s:exec = 'fzf' endif