Skip to content

Instantly share code, notes, and snippets.

@mopp
Last active December 25, 2015 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mopp/6987029 to your computer and use it in GitHub Desktop.
Save mopp/6987029 to your computer and use it in GitHub Desktop.
let ps = vimproc#popen3('path/to/t_sample')
call ps.stdin.write('write_test!')
call ps.stdin.close()
" close無しだと以下のreadで空
let output = ps.stdout.read()
echomsg " 2 stdout echos " . output
" finish
call ps.stdout.close()
call ps.stderr.close()
call ps.waitpid()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment