Vim
vimThe ubiquitous modal text editor, configured through a single vimrc.
The ubiquitous modal text editor, configured through a single vimrc.
set directory=, set backupdir=, set undodir=set expandtabset shiftwidth=2 set directory=/Users/octocat/.vim/swap//machine-localset backupdir=/Users/octocat/.vim/backup//machine-localset undodir=/Users/octocat/.vim/undo//machine-localset undofileOtty splits these out before upload and puts each machine’s own back on the way down — no templates to write. The lines above come from this tool’s test fixture in the catalog.
Not a subtraction from the paths above: this is everything else Vim writes in your home directory that is state, not configuration. It keeps a whole-home manager like chezmoi from sweeping those up, and it still holds if the synced paths are ever widened.
set directory=set backupdir=set undodir=set expandtabset shiftwidth=2 set directory=/Users/octocat/.vim/swap//machine-localset backupdir=/Users/octocat/.vim/backup//machine-localset undodir=/Users/octocat/.vim/undo//machine-localset undofileEach machine keeps its own copy of these.
Only what the catalog names. A directory that syncs brings everything inside it except what is listed as excluded here.
Opens otty://sync/add/vim. Otty ships with this catalog, so the link only has to name the tool — nothing is downloaded.
Every one of these is generated from the same rules as this page. None of them splits set directory= and set backupdir= for you — that part is Otty’s own sync, or a template you write by hand.