> > Hello Vim users,
> > Work on Vim 8.0 is coming close to an end. I hope version 8.0 can be
> > released in about two weeks.
> > This is a last chance to modify new features in a way that is not
> > backwards compatible. Once 8.0 is out we can't make changes that would
> > break plugins.
> Can we have a binary mode in channels ? Which could be used to implement
> a virtual terminal inside vim in VimScript.
> According to the ":help channel", There is a "raw" mode in channels, but it
> will treat the whole message as a string, not a binary data.
Raw mode is nearly binary. The only limitation I'm aware of is that it
can't handle NUL bytes. And since there is no way to deal with binary
data anyway in Vim script, it's probably the only thing possible.
An alternative is NL mode, then you get lines at a time where NUL bytes
have been changed to NL bytes. But it will be stuck waiting for the
This planet has -- or rather had -- a problem, which was this: most
of the people living on it were unhappy for pretty much of the time.
Many solutions were suggested for this problem, but most of these
were largely concerned with the movements of small green pieces of
paper, which is odd because on the whole it wasn't the small green
pieces of paper that were unhappy.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"