Fzf: Can't open files with :FZF when there is an unwritten buffer open

Created on 29 Nov 2017  路  2Comments  路  Source: junegunn/fzf

  • Category

    • [ ] fzf binary

    • [ ] fzf-tmux script

    • [ ] Key bindings

    • [ ] Completion

    • [ ] Vim

    • [x] Neovim

    • [ ] Etc.

  • OS

    • [ ] Linux

    • [x] Mac OS X

    • [ ] Windows

    • [ ] Windows Subsystem for Linux

    • [ ] Etc.

  • Shell

    • [ ] bash

    • [x] zsh

    • [ ] fish

Repro steps:

  1. Open a file
  2. Edit file (don't save)
  3. Use :FZF
  4. Pick a file

Expected: Open selected file in new buffer and switch to it.

Actual:

<trl-v,ctrl-x,ctrl-t --no-height > /var/folders/5d/wj1h61lj27j8pgsh6lyxctqc0000gn/T/nvimKFsBDv/2;#FZF 16,1           All
Error detected while processing function 7[30]..<SNR>34_callback:
line   33:
Vim(edit):E37: No write since last change (add ! to override)
Press ENTER or type command to continue

My $TERM is set to xterm-256color. I'm using iTerm. :version output:

NVIM v0.2.2
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -
DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-param
eter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINC
LUDE_GENERATED_DECLARATIONS -I/tmp/neovim-20171118-53412-9ielcr/neovim-0.2.2/build/config -I/tmp/neovim-20171118-53412-9
ielcr/neovim-0.2.2/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/
include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20171118-53412-9ielcr/neovim-
0.2.2/build/src/nvim/auto -I/tmp/neovim-20171118-53412-9ielcr/neovim-0.2.2/build/include
Compiled by [email protected]

Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.2.2/share/nvim"

Run :checkhealth for more info

I cut my init.vim down to just this to make sure it isn't anything else interfering:

call plug#begin('~/.local/share/nvim/plugged')
Plug 'junegunn/fzf'
call plug#end()

Let me know if I can help and thanks for the awesome plugin!

question

Most helpful comment

You need set hidden. It's off by default.

All 2 comments

You need set hidden. It's off by default.

D'oh, of course you're right - Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmedelgabri picture ahmedelgabri  路  3Comments

nordlow picture nordlow  路  3Comments

asilvadesigns picture asilvadesigns  路  3Comments

leonklingele picture leonklingele  路  3Comments

chrisamow picture chrisamow  路  3Comments