Skip to content

Instantly share code, notes, and snippets.

@brycemcd
Created October 26, 2013 15:26
Show Gist options
  • Save brycemcd/7170667 to your computer and use it in GitHub Desktop.
Save brycemcd/7170667 to your computer and use it in GitHub Desktop.
HowTo: share vim confs (using janus) between two computers using bittorrent sync

How To Share Vim Configuration Between Two Computers Using Bittorrent Sync

Explanation of Setup

I have a shared directory that I keep in sync between my desktop at home and my laptop at work. The directory is ~/.shared_conf. I keep them in sync using (BitTorrentSync)[http://labs.bittorrent.com/experiments/sync.html] . It works great on a LAN and over a WAN.

I use (The Janus flavor of vim configs)[https://github.com/carlhuda/janus].

Keeping my vim files (and janus files) in sync between the two computers keeps my vim experience consistent between my machines.

Commands:

mkdir ~/.shared_conf

# vim specific
mv .vim .vim.bkp
cp -r .vim.bkp ~/.shared_conf/.vim
ln -s ~/.shared_conf/.vim ~/.vim

# janus specific
mv .janus .janus.bkp
cp -r .janus.bkp ~/.shared_conf/.janus
ln -s .janus ~/.shared_conf/.janus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment