Working on the same projects from multiple computers can be difficult. There are lots of solutions for this problem such as using Dropbox to sync files between computers. but that leaves your workspace to start from scratch ie when working from the office last I had these 10 files open, and a couple of things running, then when I get home if the files sync over I have to reopen those files locally and configure that computer for anything else that needs to run to continue debugging.
Enter Tmux and Vim.
Lately I’ve been working 3 days at home, 2 days at the office each week. As a result I have re-evaluated my workflow to find something a bit more efficient. Vim in the terminal is brilliant once you’ve got it set up and have mastered it. It has been my main editor for about 3 years now. There are a ton of great resources out there to learn Vim for those of you still trying to find the way.
Tmux is new to me though. It’s basically a better version of screen. If your not familar it basically provides a way to do 2 main things. First it allows you to create a persistent session that you can connect to and leave running. Secondly in this session you can open up and layout many different consoles into tabs or windows. It’s sort of a command line version of VNC.
I have tmux installed on my Linux servers on AWS so that I can work efficiently on those machines, and I have it installed on my workstation at the office. I can log into the environment with SSH and continue right where I left off even if I’m switching between my laptop and a friends computer.
With Vim I have the ability to keep my settings and plugins saved and configured the way I like them with a configurations version controlled on github. Getting a new Linux or Mac machine up and running takes very little time to do with this setup.
I’ll give my best tips and tricks for Vim in another post.