On 4/19/07, Tim Chase <[EMAIL PROTECTED]> wrote:
>
> >> Well, whitespaces in Python are pretty difficult to keep in
> >> line, if you are used to other languages. I personally use
> >> Tabs for intending and VIM editor and have it to make Tabs
> >> visible like dark blue |------,
> >
> > Hey, do you mind sharing your .vimrc for that, probably best
> > on dpaste.com ?
>
>
> Just add
>
>         set listchars+=tab:|-
>         set list
>
> to the end of your vimrc.  This will show the tabs in the above
> format.  The color is based on your colorscheme, whatever
> highlighting it maps the SpecialKey to.
>
> If you don't like the other characters that become visible with
> listchars, you'd have to remove them from the 'listchars' setting
> (it defaults to "eol:$")
>
>         :set listchars-=eol:$
>
> You can read more than anybody would care to know at
>
>         :help 'listchars'
>         :help hl-SpecialKey
>         :help 'list'
>
> and the subsequent links to which those send you.
>
> -tkc
>

I've got to throw my two cents in here. The Python community (or at
least, the majority of it), insists on spaces instead of tabs.
http://www.python.org/dev/peps/pep-0008/

I don't want to start a discussion of which is better, as this is not
the right place. However, Django is written using spaces, not tabs.
The community tends to write with spaces, not tabs. The PEP says not
to mix the two, and if a mix happens, convert all your code to use
spaces, not tabs. So be wary if you ever plan on plugging someone
else's Django application into your project.

If you think tabs are better because you can highlight, then try this:

http://www.vim.org/tips/tip.php?tip_id=1040

Jay P.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to