[Python-ideas] Pipe indentation

Matthew Boehm boehm.matthew at gmail.com
Tue Dec 10 20:51:43 CET 2013


Just to throw another editor's hat in the ring, the best way to achieve
this in vim is with the indent-guides plugin
https://github.com/nathanaelkane/vim-indent-guides however in stock vim,
you can use 'listchars' to render a tab as a pipe followed by spaces.

-Matt Boehm


On Tue, Dec 10, 2013 at 1:32 PM, Ryan Gonzalez <rymg19 at gmail.com> wrote:

> I now feel dumbfounded because I never knew the -t/-tt option was there
> until now...
>
>
> On Tue, Dec 10, 2013 at 9:47 AM, Guido van Rossum <guido at python.org>wrote:
>
>> On Tue, Dec 10, 2013 at 12:35 AM, Stephen J. Turnbull
>> <stephen at xemacs.org> wrote:
>> > Chris Angelico writes:
>> >
>> >  > The upshot is that you get instant feedback if you ever get
>> >  > tabs/spaces wrong, and you get nice guides if you always indent
>> >  > consistently, and in between is shooting yourself in the foot
>> >  > anyway.
>> >
>> > Sounds like somebody's thought this through pretty carefully!  I'm an
>> > emacs guy, so unlikely to switch, but that description sounds like a
>> > good specification to start with if we add that kind of functionality
>> > to our python-mode.
>>
>> Probably the first time significant thought was put into this was when
>> I designed the -t/-tt option for Python 2. I don't recall when that
>> was but it was in a very early Python 2 release. Everything else seems
>> just derivative to me -- either the same solution, or buggy. :-)
>>
>> --
>> --Guido van Rossum (python.org/~guido)
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>
>
>
> --
> Ryan
> When your hammer is C++, everything begins to look like a thumb.
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131210/79299cd9/attachment-0001.html>


More information about the Python-ideas mailing list