6266Re: [edit+] EditPlus, VIM, tab spacing
- May 15, 2009Amen brother.
Someone actually agrees with me without me having to explain it to them.
I'm glad I'm not the only one out there who thinks this way.
On Fri, May 15, 2009 at 1:37 AM, Mark Kahn <cwolves@...> wrote:
> There really needs to be a manual on how tabs and spaces work that everyone
> MUST read before ever attempting to write code (no offense to you
> There's a million points of view, but here's mine and anyone that tells you
> anything different is flat out wrong:
> - everything gets indented with tabs. If blocks, for loops, functions,
> etc. NEVER use spaces for block indentation. It's a rude and obtrusive
> practice that forces your style on other people.
> - AFTER the first non-tab character of a line, NEVER use another tab. e.g.
> f you're aligning variables, punctuation or whatnot use spaces. The one
> possible exception to this is to put tabs before line comments. Do whatever
> you want here.
> - If you're aligning the beginning of a line, e.g. you're aligning function
> variables, use the SAME NUMBER of tabs as the first line and then spaces.
> So you have "\t\tfunction foo(arg1\n\t\t<<SPACES GO HERE>>arg2)"
> Do this and your code will look right no matter what editor you open it in,
> no matter what the tab settings are. You can freely change your tab with
> from 4 to 2 or 8 and your code still looks right!
> The only somewhat "valid" argument I've EVER heard for using spaces instead
> is that some SVN diffs (e.g. in e-mails or whatnot) strip tabs, but to me
> that just means you need to fix your diff app.
> On Wed, May 13, 2009 at 11:08 AM, allthenamesrtook <
> allthenamesrtook@... <allthenamesrtook%40yahoo.com>> wrote:
> > When I tab things to line up in editplus, then use vim to edit a file,
> > are far from matching up. Anyone else run into this? Ideas?
> [Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>