Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76809
| References | <tl1fv9di31uj2mq87u5mpudqjql2o5bvbv@4ax.com> <lt832o$ugb$1@ger.gmane.org> |
|---|---|
| Date | 2014-08-22 12:21 -0700 |
| Subject | Re: Global indent |
| From | Dan Stromberg <drsalists@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13301.1408735308.18130.python-list@python.org> (permalink) |
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