Re: Problem with the "for" loop syntax

Discussion in 'Python' started by Cameron Simpson, Jun 20, 2013.

  1. On 20Jun2013 15:33, Oscar Benjamin <> wrote:
    | On 20 June 2013 04:11, Cameron Simpson <> wrote:
    | > I use vi/vim and it both shows the matching bracket when the cursor
    | > is on one and also have a keystroke to bounce the curser between
    | > this bracket and the matching one.
    | >
    | > If you suspect you failed to close a bracket, one approach is to
    | > go _below_ the syntax error (or right on it) and type a closing
    | > bracket. Then see where the editor thinks the opening one is.
    |
    | I use this technique sometimes and it works if the unclosed bracket is
    | still in view.

    Standing on a bracket, the '%' key jumps to the matching bracket.
    No need for it to be in view.

    Cheers,
    --
    Cameron Simpson <>

    "Vy can't ve chust climb?" - John Salathe
    Cameron Simpson, Jun 20, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Isaac Won
    Replies:
    9
    Views:
    372
    Ulrich Eckhardt
    Mar 4, 2013
  2. arturo balbuena

    Problem with the "for" loop syntax

    arturo balbuena, Jun 19, 2013, in forum: Python
    Replies:
    8
    Views:
    137
    Chris Angelico
    Jun 20, 2013
  3. Cameron Simpson

    Re: Problem with the "for" loop syntax

    Cameron Simpson, Jun 20, 2013, in forum: Python
    Replies:
    0
    Views:
    109
    Cameron Simpson
    Jun 20, 2013
  4. Joshua Landau

    Re: Problem with the "for" loop syntax

    Joshua Landau, Jun 20, 2013, in forum: Python
    Replies:
    4
    Views:
    117
    Neil Cerutti
    Jun 21, 2013
  5. Oscar Benjamin

    Re: Problem with the "for" loop syntax

    Oscar Benjamin, Jun 20, 2013, in forum: Python
    Replies:
    0
    Views:
    100
    Oscar Benjamin
    Jun 20, 2013
Loading...

Share This Page