Vim Tab Set (and keeping the code monkeys at bay)

OK, I like tabs. Extol the virtues of emacs all you want, but I have never had the time or desire to learn it’s intricacies. Vim is my friend. Many coding “best practices” say to always use single space characters for white space at the beginning of lines, but c’mon – one or two key presses, or 4-8 (or 5-27 with deletes and backspaces to line things up just right, etc.)… And the folks that look at my code suggest only 4 spaces per indent…

Cleric (code monkey): And the Lord spake, saying, “First shalt thou take out the Holy Pin. Then shalt thou count to four, no more, no less. Four shall be the number thou shalt count, and the number of the counting shall be Four. Five shalt thou not count, neither count thou three, excepting that thou then proceed to four. Six is right out. Once the number four, being the fourth number, be reached, then lobbest thou thy Holy Hand Grenade of Antioch towards thy code…”

My personal peeve with my insistent use of tabs has been copy/paste between two terminals – the tabs get pasted as spaces and require correction back to tabs. Sooo… I start digging for vim set characteristics to, once and for all, fix both problems. This makes me happy with xterm copy/paste code reuse, and keeps the nitpicking code verification monkeys off my a__.

perl, shell, etc.:
# vim:set ai ts=4 tw=0 expandtab:

c:
/* vim:set ai ts=4 tw=0 expandtab: */