Skip to content
Myr

[vim] Pick up fzf-tmux on $PATH when bin/fzf-tmux is not found

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #1874

authored by Junegunn Choi · committed by Junegunn Choi · parent 5b99f19 · Browse files · 1 file+10 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+10 added−4 removed

  • other:+10 added−4 removed

1 file+10 added−4 removed

modified:plugin/fzf.vim+10 added-4 removed
162 unmodified lines
163 return fzf#shellescape(s:exec)164endfunction165166function! s:tmux_enabled()167 if has('gui_running')167 if has('gui_running') || !exists('$TMUX')168 return 0169 endif170171 if exists('s:tmux')172 return s:tmux173 endif174175 let s:tmux = 0176 if exists('$TMUX') && executable(s:fzf_tmux)177 let output = system('tmux -V')178 let s:tmux = !v:shell_error && output >= 'tmux 1.7'176 if !executable(s:fzf_tmux)177 if executable('fzf-tmux')178 let s:fzf_tmux = 'fzf-tmux'179 else180 return 0181 endif182 endif183184 let output = system('tmux -V')185 let s:tmux = !v:shell_error && output >= 'tmux 1.7'186 return s:tmux187endfunction188189function! s:escape(path)
759 unmodified lines