Fzf: Warning: Output is not to a terminal

Created on 11 Jul 2018  路  2Comments  路  Source: junegunn/fzf

  • Category

    • [x] fzf binary

    • [ ] fzf-tmux script

    • [ ] Key bindings

    • [ ] Completion

    • [ ] Vim

    • [ ] Neovim

    • [ ] Etc.

  • OS

    • [ ] Linux

    • [x] Mac OS X

    • [ ] Windows

    • [ ] Windows Subsystem for Linux

    • [ ] Etc.

  • Shell

    • [ ] bash

    • [x] zsh

    • [ ] fish

I'm trying to assign assign the resulting file of fzf while also having a keybinding to edit the file in Vim.

RESULT=$(fzf --bind="ctrl-o:execute(vim {} < /dev/tty)")

The problem is that when I press ctrl-o, I get Vim: Warning: Output is not to a terminal. Is there a way to solve this?

Most helpful comment

Try vim {} < /dev/tty > /dev/tty

All 2 comments

Try vim {} < /dev/tty > /dev/tty

Thanks, it works!

Was this page helpful?
0 / 5 - 0 ratings