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


Groups > comp.lang.python > #76816

Re: Global indent

References <tl1fv9di31uj2mq87u5mpudqjql2o5bvbv@4ax.com> <lt832o$ugb$1@ger.gmane.org>
Subject Re: Global indent
From Simon Ward <simon@bleah.co.uk>
Date 2014-08-22 20:22 +0100
Newsgroups comp.lang.python
Message-ID <mailman.13304.1408737561.18130.python-list@python.org> (permalink)

Show all headers | 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