#!/bin/sh
if [ -z "$WINDOW" ]; then
	echo "You are not running screen"
	exit 1
fi
screen -X setenv SWANWIN $WINDOW

# Open a new screen and start vi there
# Pipe anything interesting through slim. 
# E.g. 
#    1G!Gslim 
# pipes the whole file into the REPL
# You can put something like this into your .exrc:
#  :map K !%slim^M
# where ^M is the verbatim Return (you can type it as Ctrl+V Return)
# The Command Key K then pipes everything up to the closing paren into
# the REPL

csi
