Fzf: How to remove bar at the bottom when using Neovim?

Created on 14 Nov 2017  路  13Comments  路  Source: junegunn/fzf

  • Category

    • [ ] fzf binary

    • [ ] fzf-tmux script

    • [ ] Key bindings

    • [ ] Completion

    • [ ] Vim

    • [x] Neovim

    • [ ] Etc.

  • OS

    • [x] Linux

    • [ ] Mac OS X

    • [ ] Windows

    • [ ] Windows Subsystem for Linux

    • [ ] Etc.

  • Shell

    • [ ] bash

    • [x] zsh

    • [ ] fish


Using Neovim, running FZF always adds a line to the bottom which I would rather not have.

screenshot from 2017-11-14 19-24-51

I do not have this problem with Vim though.

screenshot from 2017-11-14 19-25-11

How do I get FZF to look the same in Neovim?

neovim

Most helpful comment

Setting laststatus to 0 while fzf is running can help.

if has('nvim') || has('gui_running')
  autocmd! FileType fzf
  autocmd  FileType fzf set laststatus=0 | autocmd WinLeave <buffer> set laststatus=2
endif

All 13 comments

Same issue as #1142?

Hmmm...

I don't think so. I am not even sure I understand what that issue is about. Also, the problem here is that I don't have a problem while using Vim. Only while using Neovim though I am using the same .vimrc.

Short answer: you can't. Neovim cannot start external processes like Vim does so fzf can only start inside its built-in terminal emulator. #137

The same applies to GVim.

Ah, anything I can do to at least make it (that bar) look a bit more presentable?

Setting laststatus to 0 while fzf is running can help.

if has('nvim') || has('gui_running')
  autocmd! FileType fzf
  autocmd  FileType fzf set laststatus=0 | autocmd WinLeave <buffer> set laststatus=2
endif

Won't work on gvim/windows 10.

You have to bear in mind that Windows/GVim support is experimental and I would generally recommend using terminal Vim on WSL instead.

Thank you so much! That worked perfectly! Any chance of adding this to the wiki?

Will do.

Note that in case fzf is configured with enew you need to use BufLeave rather than WinLeave.

Good point.

Added https://github.com/junegunn/fzf/blob/master/README-VIM.md#hide-statusline to the README-VIM page.

autocmd! FileType fzf
autocmd  FileType fzf set laststatus=0 noshowmode noruler
  \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
Was this page helpful?
0 / 5 - 0 ratings