diff --git a/ftplugin/supercollider.vim b/ftplugin/supercollider.vim index ab5bf10..f7e964e 100644 --- a/ftplugin/supercollider.vim +++ b/ftplugin/supercollider.vim @@ -259,8 +259,8 @@ function SClangStart(...) wincmd w elseif l:tmux || l:screen if l:tmux - let l:cmd = "tmux split-window -" . l:splitDir . " -p " . l:splitSize . " ;" - let l:cmd .= "tmux send-keys " . s:sclangPipeApp . " Enter ; tmux select-pane -l" + let l:cmd = "tmux split-window -" . l:splitDir . " -l " . l:splitSize . " " + let l:cmd .= s:sclangPipeApp . " Enter; tmux select-pane -l" call system(l:cmd) elseif l:screen " Main window will have focus when splitting, so recalculate splitSize percentage