On Mon, 28 Sep 2009, Ralf Schmitt wrote:
> I know all those settings for vim to control that but now I want something
> more dynamic. Some feature where vim is able to detect which indentation
> style to use without changing any project source files.

If your project files reside in different directory trees, you may put
project specific settings in this way

if has("autocmd")
  augroup myfiletypedetect
    au!
    au BufEnter ~/project1/* setlocal tags+=~/project1/tags
    au BufEnter ~/project2/* setlocal tags+=~/project2/tags
    au BufEnter ~/project3/* setlocal tags+=~/project3/tags
  augroup END
endif

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

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

Reply via email to