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
Tweet