« velence 100spider-man 1-2-3 »

Navigation in big if-then-else code chunks

2009. Jun. 12.

Permalink 09:56:14 am, by vmiklos, 73 words   English (US)
Categories: hacking

Navigation in big if-then-else code chunks

So when trying to understand others’ code, and they use large while/for/if blocks, it’s hard to see where one if ends, unless it’s on the same page so vim highlights it. I remembered already once that there is a char to jump to the start { of such a block from its end } and vica-versa, but I forgot it, so now I had to look it up again. It’s ‘%’. :-)

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)
July 2010
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Search

Stats

Összesen 1,455 bejegyzés és 307 megjegyzés.

Most views

  • Sparse checkout example in git 1.7.0 (1,422)
  • winning london (987)
  • pacman -Sy: rsync-like optimization (888)
  • pacman-g2 -Qt bug (876)
  • gmane export (853)
  • More...
free open source blog