I use [localvimrc][1] for this purpose. 

Put a `.lvimrc` with your project settings inside your project and these settings will override settings in `.vimrc`.

[1]:http://www.vim.org/scripts/script.php?script_id=441