Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76816

Re: Global indent

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <simon@bleah.co.uk>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.068
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'plenty': 0.07; 'python': 0.11; 'blocks': 0.16; 'character.': 0.16; 'fancy': 0.16; 'indent': 0.16; 'shifts': 0.16; 'tab': 0.16; 'wrote:': 0.18; 'replacing': 0.19; 'select': 0.22; 'header:User-Agent:1': 0.23; 'sort': 0.25; 'options': 0.25; 'task': 0.26; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'mode': 0.30; 'work.': 0.31; 'too.': 0.31; 'there.': 0.32; 'probably': 0.32; 'text': 0.33; 'but': 0.35; 'there': 0.35; 'should': 0.36; 'configured': 0.38; 'to:addr :python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'august': 0.61; 'simple': 0.61; 'more': 0.64; 'mail.': 0.69; 'add-on': 0.84; 'received:btcentralplus.com': 0.84; 'received:86': 0.91; 'subject:Global': 0.91
User-Agent Kaiten Mail
In-Reply-To <lt832o$ugb$1@ger.gmane.org>
References <tl1fv9di31uj2mq87u5mpudqjql2o5bvbv@4ax.com> <lt832o$ugb$1@ger.gmane.org>
MIME-Version 1.0
Content-Transfer-Encoding 8bit
Content-Type text/plain; charset=UTF-8
Subject Re: Global indent
From Simon Ward <simon@bleah.co.uk>
Date Fri, 22 Aug 2014 20:22:56 +0100
To "Neil D. Cerutti" <neilc@norwich.edu>,python-list@python.org
X-Spam-Flag NO
X-Spam-Score -2.9
X-Spam-Level --
X-Spam-Report No, score=-2.9 required=5.0 tests=ALL_TRUSTED, BAYES_00 autolearn=ham version=3.3.2
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13304.1408737561.18130.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408737561 news.xs4all.nl 2927 [2001:888:2000:d::a6]:33131
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76816

Show key headers only | View raw



On 22 August 2014 19:44:39 BST, "Neil D. Cerutti" <neilc@norwich.edu> wrote:

>This sort of simple task [indenting blocks of text] is why fancy text editors were invented.
>
>I use and recommend gvim (press > in select mode using the standard 
>python plugin), but there are plenty of options out there.

Even without the Python add-on this should work. It shifts the text based on the 'shiftwidth' setting.

I vaguely remember using some other editors (one or more of Nedit, Gedit, Kate, Notepad++, Eclipse) that use, or can be configured to use, the tab key to indent selected text rather than replacing it with a tab character. Shift-tab probably out dented too.

Simon
-- 
Sent from Kaiten Mail. Please excuse my brevity.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Global indent Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-22 14:19 -0400
  Re: Global indent Skip Montanaro <skip@pobox.com> - 2014-08-22 13:34 -0500
  Re: Global indent "Neil D. Cerutti" <neilc@norwich.edu> - 2014-08-22 14:44 -0400
  Re: Global indent Dan Stromberg <drsalists@gmail.com> - 2014-08-22 12:21 -0700
  Re: Global indent Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-22 15:46 -0400
    Re: Global indent Rob Gaddi <rgaddi@technologyhighland.invalid> - 2014-08-22 12:54 -0700
      Re: Global indent Marko Rauhamaa <marko@pacujo.net> - 2014-08-22 23:11 +0300
        Re: Global indent Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-23 19:08 +1000
          Re: Global indent Marko Rauhamaa <marko@pacujo.net> - 2014-08-23 12:32 +0300
          Re: Global indent Christian Gollwitzer <auriocus@gmx.de> - 2014-08-23 11:41 +0200
            Re: Global indent Joshua Landau <joshua@landau.ws> - 2014-08-23 15:19 +0100
              Re: Global indent Christian Gollwitzer <auriocus@gmx.de> - 2014-08-23 18:17 +0200
                Re: Global indent Joshua Landau <joshua@landau.ws> - 2014-08-23 21:57 +0100
                Re: Global indent Rustom Mody <rustompmody@gmail.com> - 2014-08-23 14:55 -0700
                Re: Global indent Joshua Landau <joshua@landau.ws> - 2014-08-24 20:24 +0100
            Re: Global indent Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-24 00:56 +1000
              Re: Global indent Christian Gollwitzer <auriocus@gmx.de> - 2014-08-23 18:09 +0200
              Re: Global indent Anders Wegge Keller <wegge@wegge.dk> - 2014-08-23 22:43 +0200
                Re: Global indent Marko Rauhamaa <marko@pacujo.net> - 2014-08-24 01:50 +0300
            Re: Global indent Tim Chase <python.list@tim.thechases.com> - 2014-08-23 15:18 -0500
          Re: Global indent Rustom Mody <rustompmody@gmail.com> - 2014-08-23 07:49 -0700
          Re: Global indent [levity] Peter Pearson <pkpearson@nowhere.invalid> - 2014-08-23 17:17 +0000
      Re: Global indent "Neil D. Cerutti" <neilc@norwich.edu> - 2014-08-22 16:16 -0400
      Re: Global indent Dan Stromberg <drsalists@gmail.com> - 2014-08-22 14:14 -0700
        Re: Global indent Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-23 19:31 +1000
          Re: Global indent Tim Chase <python.list@tim.thechases.com> - 2014-08-23 15:09 -0500
      Re: Global indent Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-23 18:19 +1000
        Re: Global indent alister <alister.nospam.ware@ntlworld.com> - 2014-08-23 10:17 +0000
          Re: Global indent Gene Heskett <gheskett@wdtv.com> - 2014-08-23 10:32 -0400
    Re: Global indent Chris Angelico <rosuav@gmail.com> - 2014-08-23 06:20 +1000
    Re: Global indent Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-22 21:59 +0100
    Re: Global indent mm0fmf <none@mailinator.com> - 2014-08-23 12:50 +0100
  Re: Global indent Simon Ward <simon@bleah.co.uk> - 2014-08-22 20:22 +0100
  Re: Global indent Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-23 18:12 +1000
  Re: Global indent Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-23 11:10 -0400

csiph-web