Jeff Roberts
RHCE #804006066322833
Vim-Fu is now iPhone and Android friendly

Check out the Vim-Fu Store!

Vim-Fu

finding the complement to a {}, (), []

Place your cursor over one of a pair of “()”, “{}”, or “[]“, and press “%”. Vim will move your cursor to the complement. Use this as a quick way to jump to the end of function.

3 comments to finding the complement to a {}, (), []

  • tr

    First off, great site. I like your vi and cloud tips. You can delete or change all the contents between {}, (), [], and even “” by the inner block command. For example, di{ will delete everything between {}. ci( will change everything between the ().

  • Justin B

    There’s also a bunch of motion commands in section 29.3 (:help 29.3). You can do things like jump to the top/bottom of the function of if/else…

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>