I was trying see if I can integrate fzf with nvi, but couldn't find a way to do something like :Edit <shell command's output>
which would solve my problem.
I tried :source nvi.ex
-- it works for a normal file; but when I do mkfifo nvi.ex
and then :source nvi.ex
, nothing happens even though it waits till I write into the fifo.
I wrote into the fifo like this:
cat - >> nvi.ex
Edit README
followed by an Enter and Ctrl-D
Are there cases where a programs treats a fifo differently compared to a normal file?
PS: This works in vi and vim though! nvi version is 1.79.
:read !cmd
?