Using a mkfifo command we can create our pipe file. After that, I just opened that file using a vim editor.
mkfifo pipe_file
vim pipe_file
But i can't come back to my terminal, How can I comeback to terminal?
First of all,
a FIFO is a blocking IO. A process blocks on reading a FIFO, that is, when you issue vim somefifo
, the vim process waits until another process opens the somefifo
for writing.
So you can try another process, e.g., issue echo "foo">somefifo
in a new terminal, then you can do normal operation in your vim process, like ZQ
to quit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With