At my work we use a standard ts
of 2; my personal preference is 4, which is what I use for my hobby projects, and this other project we inherited has the convention of ts=8
.
There are also some other settings I want to set on a project basis (for example folding). Basing these settings on the filetype or auto-detecting them based on what the file uses are not good options, since I want to respect each project's conventions.
Can I make Vim use a settings file that applies to a project (everything in a directory tree) without adding a modeline to all the files?