Skip to content
Myr

[vim] Rename g:fzf_tmux_height to g:fzf_height

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

Because tmux panes are not used on Neovim.

authored by Junegunn Choi · committed by Junegunn Choi · parent b882de8 · Browse files · 2 files+5 added−5 removed
This commit

State

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

Diff stats

2 files+5 added−5 removed

  • other:+5 added−5 removed

2 files+5 added−5 removed

modified:plugin/fzf.vim+2 added-2 removed
19 unmodified lines
20" LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION21" OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION22" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.2324let s:default_tmux_height = '40%'24let s:default_height = '40%'25let s:launcher = 'xterm -e bash -ic %s'26let s:fzf_go = expand('<sfile>:h:h').'/bin/fzf'27let s:fzf_rb = expand('<sfile>:h:h').'/fzf'28let s:fzf_tmux = expand('<sfile>:h:h').'/bin/fzf-tmux'
300 unmodified lines
329 if len(args) > 0 && isdirectory(expand(args[-1]))330 let opts.dir = remove(args, -1)331 endif332 if !a:bang333 let opts.down = get(g:, 'fzf_tmux_height', s:default_tmux_height)333 let opts.down = get(g:, 'fzf_height', get(g:, 'fzf_tmux_height', s:default_height))334 endif335 call fzf#run(extend({'options': join(args), 'sink*': function('<sid>cmd_callback')}, opts))336endfunction337
5 unmodified lines
modified:README.md+3 added-3 removed
283 unmodified lines
284285Note that the environment variables `FZF_DEFAULT_COMMAND` and `FZF_DEFAULT_OPTS`286also apply here.287288If you're on a tmux session, `:FZF` will launch fzf in a new split-window whose289height can be adjusted with `g:fzf_tmux_height` (default: '40%'). However, the290bang version (`:FZF!`) will always start in fullscreen.288If you're on a tmux session or using Neovim, `:FZF` will launch fzf in a289split-window whose height can be adjusted with `g:fzf_height` (default:290'40%'). However, the bang version (`:FZF!`) will always start in fullscreen.291292In GVim, you need an external terminal emulator to start fzf with. `xterm`293command is used by default, but you can customize it with `g:fzf_launcher`.294
218 unmodified lines