comparison runtime/tools/demoserver.py @ 8148:f5da459c5698

commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 20 15:47:01 2016 +0100 Updated runtime files.
author Christian Brabandt <cb@256bit.org>
date Sat, 20 Feb 2016 16:00:06 +0100
parents bff95e0d8885
children ed7251c3e2d3
comparison
equal deleted inserted replaced
8147:da6300d5a13b 8148:f5da459c5698
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Server that will accept connections from a Vim channel. 3 # Server that will accept connections from a Vim channel.
4 # Run this server and then in Vim you can open the channel: 4 # Run this server and then in Vim you can open the channel:
5 # :let handle = ch_open('localhost:8765', 'json') 5 # :let handle = ch_open('localhost:8765')
6 # 6 #
7 # Then Vim can send requests to the server: 7 # Then Vim can send requests to the server:
8 # :let response = ch_sendexpr(handle, 'hello!') 8 # :let response = ch_sendexpr(handle, 'hello!')
9 # 9 #
10 # And you can control Vim by typing a JSON message here, e.g.: 10 # And you can control Vim by typing a JSON message here, e.g.: