* allstars <[email protected]> [2009-11-04 19:04 -0800]:
> now i work with different projects developed by different teams
> however they have different tabspace setting
> one is 4 and the other is 8
> below is my default settings
> 
> set tabstop=4
> set softtabstop=4
> set shiftwidth=4
> set expandtab
> 
> 
> so i am wondering is there a faster way to switch tabspace back and
> forth?

Could you set 'exrc' and create an appropriate vimrc in each project
directory?

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

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to