Skip to content

Commit

Permalink
check for pipe in vim
Browse files Browse the repository at this point in the history
  • Loading branch information
capocasa committed Dec 8, 2014
1 parent 0159a96 commit 955ab2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ftplugin/supercollider.vim
Expand Up @@ -200,6 +200,9 @@ endfunction
let s:sclangStarted = 0

function SClangStart()
if filereadable("/tmp/sclang-pipe")
echo "sclang is already running"
else
if $TERM[0:5] == "screen"
if executable("tmux")
call system("tmux split-window -p 20 ; tmux send-keys " . s:sclangPipeApp . " Enter ; tmux select-pane -U")
Expand All @@ -211,6 +214,7 @@ function SClangStart()
call system(s:sclangTerm . " " . s:sclangPipeApp . "&")
let s:sclangStarted = 1
endif
endif
endfunction

function SClangKill()
Expand Down

0 comments on commit 955ab2d

Please sign in to comment.