title: read from a UNIX named pipe(fifo) into a [neo]vim buffer
body: <p>I am currently trying to make a server client architecture for any program using pipes as its stdin and stdout.</p>
  
  <p>I do have the whole server-thing working, and it's communicating through named pipes(fifo).
  What I am trying to do is to read the content of the stdout pipe into a vim buffer, constantly (asynchronously), and I am looking for the most elegant solution to this problem.</p>
  
  <p>Say I have a program, python, communicating through 2(3 if you account stderr but it's not relevant to finding the solution) pipes, namely <code>PIPE_IN</code> as its stdin, and <code>PIPE_OUT</code> as its stdout.</p>
  
  <p>I can write to the pipe easily from vim (with <code>:w</code>), how would I however read from <code>PIPE_OUT</code> into a vim or neovim buffer?</p>
  
  <p>This is not supposed to be portable to non-UNIX systems, however I would like to keep compatibility with both vim and neovim as much as possible. What would be your recommendations to do so? Should I use the vimscript language for this? Is using vim's command-line mode better in that case? What other, probably more elegant solutions, am I missing?</p>
  
  <p>Thanks in advance!</p>
  
  <p>NB: The server project's code can be found at <a href="https://github.com/Soulthym/pyper/blob/master/pyper" rel="nofollow noreferrer" title="Soulthym/pyper">Soulthym/pyper on GitHub</a> for testing purposes.</p>