Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76809
| 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 | <drsalists@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'that?': 0.05; 'level,': 0.07; 'plenty': 0.07; '22,': 0.09; 'cursor': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; '"a"': 0.16; 'cc:name:python list': 0.16; 'fancy': 0.16; 'indent': 0.16; 'wrote:': 0.18; 'command': 0.22; 'select': 0.22; 'aug': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'sort': 0.25; 'options': 0.25; 'task': 0.26; '(for': 0.26; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'mode': 0.30; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'lines': 0.31; 'that.': 0.31; 'there.': 0.32; 'another': 0.32; 'text': 0.33; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'pm,': 0.38; 'simple': 0.61; 'between': 0.67; 'bottom': 0.67; '11:44': 0.84; 'again?': 0.84; 'everything.': 0.84; 'subject:Global': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WR8J8vSzn8jwbUkoNHwj4Ecl4lVMw98of/nCfUfsNyQ=; b=PPDv1Fi5fcrfXYDCMmj933XqYBKOyZ8yvYIWFdEIGxOlFRJogoOJtPoBUGIHnn9DQZ ZU0x1v/m+mKpnvq6D0wetbBUHQ/DA12vuWNRG19amUC9th+ieDvzesJvOm6FXLqNe/Hf 1zJ1p27hQw7kO2HufX1VJOa9G+MWUx2yyMTRjgjUUkCgTC/KcggYV/JzsHUCMJynanWO C8y/4MbMhxxmYmHDKAl4stz0RY6lQOfxhIbZeM2edO6hhpp1UjjYNv2JPvTf+uKTka+C sz8gvl+dwbpLyeLl/rq7VZwEpGD49yHRBz4a0hz3NOYVo/zKrTFAJ235Mf2fjFa7Yarp 6TkA== |
| MIME-Version | 1.0 |
| X-Received | by 10.152.28.230 with SMTP id e6mr6485203lah.62.1408735300170; Fri, 22 Aug 2014 12:21:40 -0700 (PDT) |
| In-Reply-To | <lt832o$ugb$1@ger.gmane.org> |
| References | <tl1fv9di31uj2mq87u5mpudqjql2o5bvbv@4ax.com> <lt832o$ugb$1@ger.gmane.org> |
| Date | Fri, 22 Aug 2014 12:21:40 -0700 |
| Subject | Re: Global indent |
| From | Dan Stromberg <drsalists@gmail.com> |
| To | "Neil D. Cerutti" <neilc@norwich.edu> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | Python List <python-list@python.org> |
| 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.13301.1408735308.18130.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1408735308 news.xs4all.nl 2944 [2001:888:2000:d::a6]:44743 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:76809 |
Show key headers only | View raw
On Fri, Aug 22, 2014 at 11:44 AM, Neil D. Cerutti <neilc@norwich.edu> wrote: > On 8/22/2014 2:19 PM, Seymore4Head wrote: >> >> Is there a way to indent everything again? >> >> Say I have a while statement with several lines of code and I want to >> add a while outside that. That means indenting everything. Is there >> a global way to do that? > > > This sort of simple task 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. Here's another way of saying it (for vi or vim or other vi clone): 1) Go to the top of the region you want to indent. 2) Type "ma" in command mode to set a mark named "a". 3) Go to the bottom of the region you want to indent. 4) Type >'a to indent, one level, everything between the mark named "a" and the cursor HTH
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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