vim and screen - making the team awesome
I use a terminal pretty much all day, every day.
My current work set-up is Debian Linux, running over a couple of 20″ LCDS, combined with a Mac OS X box which is running on a 3rd 20″ joined together with synergy.
Yeah. Overkill.
So anyway, I’ve spent a bit of time making sure everything WORKS and works well.
I thought I’d share the love, and show my bash and vim setups for others.
I use vim, screen and the bash prompt. These are the tools of my trade, so they’ve got to be right.
Here’s what my vim looks like (mostly thanks to the brilliant zenburn colour scheme):
and my bash prompt, using screen:
To do this, i’ve just got my ~/.bashrc, ~/.vimrc (and zenburn.vim colour scheme) and ~/.screenrc files how I want them.
This works surprisingly well.
If you’ve got questions or comments, hit me up!
Addendum:
I’ve also got my screen setup working so that as I ssh to another system, the title of the screen session changes to that of the host I’ve connected to.
I sourced this from http://www.tenshu.net/screen_ssh/
So, first up I noticed that enabling this involves modifying your default ssh config, since PermitLocalCommand is disabled by default.
Add the following to /etc/ssh/ssh_config:
PermitLocalCommand yes
then in your ~/.ssh/config:
# mod to get screen to display hostname in titles
# point this to wherever you've got the screen_ssh.sh file
Host *
LocalCommand /home/YOURUSERNAMEGOESHERE/bin/screen_ssh.sh $PPID %n
The script itself is here.
Of course, you’re going to review that script and make sure it doesn’t do anything bad to your system, right?
Right.

