Open qhadron opened 4 years ago
Instead of adding a new option, I'm thinking of changing the code to always use the built-in terminal when available as I'd like to iron out the differences between Vim and Neovim and make the code simpler.
The reason I chose --height
over terminal in that case was two-fold.
--height
is that it pushes the contents upwards while fzf is runningAnyway, until I decide what I'm going to do with it, you can force fzf to use terminal buffer by using window
layout.
let g:fzf_layout = { 'window': 'bot'.float2nr(&lines * 0.4).'new' }
If you have a bleeding-edge Vim, you can make fzf run inside a pop-up window so that the existing windows are not affected.
let g:fzf_layout = { 'window': { 'width': 1, 'height': 0.4, 'yoffset': 1, 'border': 'horizontal' } }
man fzf
)Info
Problem / Steps to reproduce
Similar to #1055, I enjoy using vim8's terminal to use terminal mappings for cycling fzf modes. However, if I have the
down
key ing:fzf_layout
dictionary, fzf will always prefer to use height mode.Is it possible to add a
g:fzf_prefer_term
that chooses the vim 8 terminal over height mode? Maybe something like this?