On Sunday, August 14, 2011 21:50:29 Vladimir Panteleev wrote: > On Sun, 14 Aug 2011 21:48:26 +0300, dsimcha <dsim...@yahoo.com> wrote: > > What's wrong with configuring your editor to convert tabs to spaces? I > > know CodeBlocks, Vim and Notepad++ do this for you if you configure them > > right (though I don't remember exactly how to configure Vim to do this). > > > > Any other editor worth its salt should, too. I use this for all my > > > > code, not just Phobos. I prefer to type a tab because it's much easier > > to type than some specific number of spaces, but I prefer to have spaces > > in my code because they take up a consistent amount of columns on all > > viewers, whereas different tab stops can really make your code look > > messy. > > Oh boy, here we go again. > > No, some people prefer to use tabs for their code. If you use them > correctly (tabs for INDENTATION, spaces for ALIGNMENT), your code will > look great on all tab widths.
http://www.emacswiki.org/emacs/TabsSpacesBoth :) In any case, why I'm completly and totally in the camp that thinks that tabs should be abolished from the face of the earth, I do understand that some people choose to use tabs. So, it's perfectly reasonable to look for a solution where git catches it for you. Brad's suggestion is the correct way to do it, I believe. - Jonathan M Davis