>I always uses spaces to indent my code, but a current project requires >me to use tabs. How could I make this setting only be in effect for this >one project, assuming that the project will always be a in a specific >directory.
How many files to edit in that particular directory/project? If you don't want to make something a global setting in your '.vimrc' or manually ':set noet' each time you fire it up, you can add something to the beginning/end of each file in question, like (this example's for perl; do whatever's a comment in whatever you're using, whether /*C*/, //javascript, <!--html-->, etc.) =item vim: noet =cut to automagically set whatever options you want when firing up an edit session on that file. In this case, it's the equivalent of ":set noet" to not expandtabs to spaces. Then, you can go nuts with other options, like "ts=4", "sw=4", etc. if you want tabstops/shiftwidths every 4 chars instead of 8, etc.