roxma / vim-hug-neovim-rpc

EXPERIMENTAL
MIT License
219 stars 28 forks source link

use stdio for communication? #17

Open lilydjwg opened 6 years ago

lilydjwg commented 6 years ago

Hi, I'm considering using stdio to communicate with the Python process, to avoid security issues I've talked about in #1. What do you think about this idea?

PS: Firefox uses stdio for extensions to communicate with its native application too.

roxma commented 6 years ago

I think it's better to use unix socket on linux system.

roxma commented 6 years ago

By the way, there're two servers in this plugin. Read https://github.com/roxma/vim-hug-neovim-rpc#overall-implementation

The VIM server, which talks to vim8 using vim8's RPC. It's running in the same process as vim, so it's impossible to use stdio without changing current implementation

The NVIM server, which talks to the RPC clients. Both servers is using tcp for communication.