Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Problem with the "for" loop syntax

Thread Tools

Re: Problem with the "for" loop syntax

Oscar Benjamin
Posts: n/a
On 20 June 2013 04:11, Cameron Simpson <(E-Mail Removed)> 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.

If you use vim then you can do [( i.e. type '[' followed by '(' in
normal mode. It will jump backwards to the first unmatched opening
bracket. Use ]) to find the next unmatched closing bracket. You can
also do [{ and ]} for curly brackets. I'm not sure how to do square
brackets - [[ and ]] are used for navigating between functions.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with the Java Access Bridge and the screenreader JAWS Markus Lemcke Java 3 05-07-2013 05:27 PM
Software must support the user's settings for font size but how itworks with swing? Markus Lemcke Java 6 05-01-2013 05:16 PM
How to capture the “same” RGB images for the same scene using EDSDK? Digital Photography 0 04-28-2013 12:08 PM
Help with printing a bit pattern with printf and %x C Programming 9 04-19-2013 12:14 PM
SimpleHTTPRequestHandler used with HTTP/1.1 hangs after the secondresource on a page. Piotr Dobrogost Python 3 04-13-2013 05:21 PM