diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-07 01:14:35 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-07 01:14:35 +0900 |
commit | 8a0ab20a70954a5957a648a77a64e05013fbdf9a (patch) | |
tree | 6a97262edc8343548ea5be446a01417a19256c5e /plugin/fzf.vim | |
parent | b277f5ae6fe9b263410945796263aa52d95d4ab5 (diff) |
Update vim plugin to use Go binary
Diffstat (limited to 'plugin/fzf.vim')
-rw-r--r-- | plugin/fzf.vim | 6 |
1 files 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('<sfile>:h:h').'/bin/fzf' let s:fzf_rb = expand('<sfile>: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 |