On Wed, Nov 4, 2009 at 10:33 PM, James Michael Fultz wrote:
> * allstars <allstars....@gmail.com> [2009-11-04 19:04 -0800]:
>> now i work with different projects developed by different teams
>> however they have different tabspace setting
...
>> so i am wondering is there a faster way to switch tabspace back and
>> forth?
> You could also setup autocommands if your project files are in specific
> directories.
> au BufNewFile,BufRead /path/to/project1/* setl ts=4 sts=4 sw=4
> au BufNewFile,BufRead /path/to/project2/* setl ts=8 sts=8 sw=8
Note that these don't have to be full paths; ie this would work: