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?
Try vim {} < /dev/tty > /dev/tty
Thanks, it works!
Most helpful comment
Try
vim {} < /dev/tty > /dev/tty