#!/usr/bin/expect

set portnum 27285

spawn vim

proc handle_connection {channel client_adress client_port} {
	set cmd [gets $channel]
	close $channel
	send "$cmd\n"
}
socket -server handle_connection $portnum
interact
