vimneovimvim-fzf

Open fzf.vim in split instead of floating window


I've just setup Neovim v0.4.4 with fzf.vim (commit) on a new machine running Manjaro using sudo pacman -Sy neovim. Previously (unknown version) the window for FZF has appeared in a split at the bottom but now it appears as a window in the middle of the window as in the screenshot below. How do I configure it to be a split at the bottom instead?

.vimrc:

call plug#begin('~/.vim/plugged')


" PlugInstall and PlugUpdate will clone fzf in ~/.fzf and run install script
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'


" Initialize plugin system
call plug#end()

map <C-F> :Files<CR>

enter image description here


Solution

  • There are five kinds of layout for fzf according to documentation:

    For your requested setup, you should add in your .vimrc or where you are putting your settings the following line: let g:fzf_layout = { 'down': '~40%' } where the ~40% is the percentage of all your nvim window