After using vim for the better part of a year I’ve decided to give Sublime Text 2 a whirl.
Using vim my
.vimrc of course grew quite substantial since I constantly found small ways to modify it, I ended up putting my .vim under version control.
I’ve been using Sublime Text for a few weeks now, installing several plugins, and as I’m exploring plugins and configurations I get a blistering headache trying to keep my work machine (Windows) and my home machine (Linux) in sync.
So, how do I get my configuration back under (version) control?
Here is a way I’ve done it myself:
- Install Dropbox or Ubuntu One on both systems. In the following steps it will be assumed that you have installed Dropbox with default directory layout.
Assuming you have the up-to-date settings on Linux, move there the
~/Dropbox/.config/sublime-text-2/Packagesand create the following symlink:
ln -s ~/Dropbox/.config/sublime-text-2/Packages ~/.config/sublime-text-2/Packages
On Windows remove the
%UserProfile%AppDataSublime Text 2Packagesdirectory and in place of it create a symlink pointing to
mklink /d "%UserProfile%AppDataSublime Text 2Packages" %UserProfile%Dropbox.configsublime-text-2Packages
Please note that the commands are only provided for reference and I haven’t tested them.