Skip to content
Myr

[vim] Apply FZF_DEFAULT_{OPTS,COMMAND} when using tmux splits (#87)

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

authored by Junegunn Choi · committed by Junegunn Choi · parent a54784c · Browse files · 1 file+8 added−3 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+8 added−3 removed

  • other:+8 added−3 removed

1 file+8 added−3 removed

modified:plugin/fzf.vim+8 added-3 removed
147 unmodified lines
148 endif149endfunction150151function! s:execute_tmux(dict, command, temps)152 let command = a:command153 if exists('$FZF_DEFAULT_OPTS')154 let command = expand('FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS" ') . command155 endif156 if exists('$FZF_DEFAULT_COMMAND')157 let command = expand('FZF_DEFAULT_COMMAND="$FZF_DEFAULT_COMMAND" ') . command158 endif159 if has_key(a:dict, 'dir')153 let command = 'cd '.s:escape(a:dict.dir).' && '.a:command154 else155 let command = a:command160 let command = 'cd '.s:escape(a:dict.dir).' && '.command161 endif162163 let splitopt = '-v'164 if has_key(a:dict, 'tmux_width')
83 unmodified lines