在拆分中打开 fzf.vim 而不是浮动 window

Open fzf.vim in split instead of floating window

我刚刚使用 fzf.vim (commit) 在新机器 运行 Manjaro 上使用 sudo pacman -Sy neovim 安装了 Neovim v0.4.4。以前(未知版本)FZF 的 window 出现在底部的拆分中,但现在它显示为 window 中间的 window,如下面的屏幕截图所示。如何将其配置为底部拆分?

.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>

根据文档,fzf有五种布局:

  • window(您的实际行为)
  • 下/上/左/右

对于您要求的设置,您应该在您的 .vimrc 中或您放置以下行的位置添加: let g:fzf_layout = { 'down': '~40%' } 其中 ~40% 是所有 nvim 的百分比window