Today I Learned

hashrocket A Hashrocket project

Ergonomically select text between parens

Operating on text within parens is pretty straight forward for a regular vim user.

To select: vi( or vi)

To delete: di( or di(

But that hand stretch between shift and 9 or shift and 0 is sorta weird. Vim has a built in ergonomic shortcut for this operation though.

To select: vib

To delete: dib

Much easier on the ol' hands.

Picked this trick up watching the terrific Vim Un-Alphabet screencast series.

See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.