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.
|
||||||
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 {}, (), [] |
||||||
|
220 queries. 0.427 seconds. |
||||||
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 ().
An awesome addition.
Thanks tr !
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…