Today I Learned

hashrocket A Hashrocket project

Vim Range Copy And Move

Today I used the Vim command :88t143 to copy a let block from one unit test to another. Vim has a few terse commands that work on whole lines like this. Here are two:

:[range]co[py] {address}        :co :copy
:[range]m[ove] {address}        :m :mo :move

:t is an alias for :copy, so the command I used copied line 88 and pasted it below line 143. It's all about saving those keystrokes!

h/t Josh Davey & Josh Branchaud

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.