You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on my .vimrc. I removed it to see if it was overriding it. However, it still did not have any effect. Apparently, FZF remembers the old height value assigned to g:fzf_layout. How can I enforce a custom height option for a given command? For example, I prefer :Files or :Gr to have a larger height than :Commands.
The text was updated successfully, but these errors were encountered:
--height option makes sense only when you run fzf outside of Vim. When we run fzf inside Vim, we open it in a terminal buffer, and fzf should use the whole screen estate of the buffer, so we enforce --no-height (i.e. Use the entire screen of the terminal).
@junegunn Thanks for the answer, I have it working now. The reason why I got confused was because '--no-height' does have an effect. Would it make sense to ignore that option as well?
Well, it's complicated, you probably don't really want to know the nitty-gritty :)
On regular Vim, with down layout, fzf does not open in a terminal buffer, but using --height option. So in this particular case, you can get the impression that --height or --no-height has an effect. But it's an exception, because --height cannot support left, right, or up layouts, so we use terminal buffers in those cases.
On the other hand, on Neovim, fzf always opens in a terminal buffer because --height doesn't work well with Neovim. So --height or --no-height doesn't have any effect on Neovim.
man fzf
)The
'height', '80%'
option in the following command does not have any effect.Initially I had
on my
.vimrc
. I removed it to see if it was overriding it. However, it still did not have any effect. Apparently, FZF remembers the oldheight
value assigned tog:fzf_layout
. How can I enforce a customheight
option for a given command? For example, I prefer:Files
or:Gr
to have a larger height than:Commands
.The text was updated successfully, but these errors were encountered: