# ~/bin/ss-ctrl
#!/bin/sh
env_name=ctrl
long_name=skillspy
short_name=ss
cd ~/src/${long_name}/site && \
tmux new-session -d -s ${short_name}-${env_name} && \
tmux rename-window -t ${short_name}-${env_name}:1 git && \
tmux new-window -t ${short_name}-${env_name}:2 -n log 'RAILS_ENV=development rails s -p 3009; bash -i' && \
tmux new-window -t ${short_name}-${env_name}:3 -n db 'ssdb; bash -i ' && \
tmux new-window -t ${short_name}-${env_name}:4 -n misc && \
tmux new-window -t ${short_name}-${env_name}:5 -n redis 'cd ~/src/redis-2.6.0-rc8/src && ./redis-server && date && bash -i' && \
tmux new-window -t ${short_name}-${env_name}:6 -n sidekiq 'RAILS_ENV=development bundle exec sidekiq | tee log/sidekiq.log; date; bash -i' && \
tmux select-window -t ${short_name}-${env_name}:1 && \
tmux -2 attach-session -t ${short_name}-${env_name}
# ~/bin/ss-code
#!/bin/sh
env_name=code
long_name=skillspy
short_name=ss
cd ~/src/${long_name}/site/app/models && \
tmux new-session -d -s ${short_name}-${env_name} && \
tmux rename-window -t ${short_name}-${env_name}:1 models
cd ~/src/${long_name}/site/app/controllers && \
tmux new-window -t ${short_name}-${env_name}:2 -n controllers
cd ~/src/${long_name}/site/app/views && \
tmux new-window -t ${short_name}-${env_name}:3 -n views
cd ~/src/${long_name}/site/app/assets/stylesheets && \
tmux new-window -t ${short_name}-${env_name}:4 -n css
cd ~/src/${long_name}/site/app/assets/javascripts && \
tmux new-window -t ${short_name}-${env_name}:5 -n js
cd ~/src/${long_name}/site/app/workers && \
tmux new-window -t ${short_name}-${env_name}:6 -n workers
tmux select-window -t ${short_name}-${env_name}:1 && \
tmux -2 attach-session -t ${short_name}-${env_name}I use two tmux windows, one of each of my screens. One is code and the other runs `make && ./test blah blah` whenever I hit F5 in vim. To get vimux to use windows (as opposed to just panes) there's a fork under pull requests (disclaimer: I wrote it).
I still use tmux or screen to do other things which aren't convenient or elegant to do within vim, but splitting windows and creating tabs can be done just fine within vim itself (or, in my case, within gvim, which I prefer due to the increased color gamut and keybinding abilities over terminal vim).
If you haven't tried multiple panes with multiple font sizes — e.g., smaller font for logs/compiling/long-running, bigger for editing — then that's a world I don't want to live in. (j/k ;)