Skip to content

Instantly share code, notes, and snippets.

@tsukkee
Last active December 11, 2015 04:39
Show Gist options
  • Save tsukkee/4547022 to your computer and use it in GitHub Desktop.
Save tsukkee/4547022 to your computer and use it in GitHub Desktop.
古いVimだと動くけど、最新のVimだと動かない
echomsg 'begin'
python <<EOF
# coding: utf-8
import thread
import time
def func():
for i in range(0, 10):
print i
time.sleep(1)
thread.start_new_thread(func, ())
EOF
echomsg 'end'
echomsg 'begin'
ruby <<EOF
Thread.new do
10.times do |i|
puts i
sleep 1
end
end
EOF
echomsg 'end'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment