LB7979

Vim: Add lines under lines with a pattern

Mar 17th, 2016
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.06 KB | None | 0 0
  1. To turn:
  2. foo
  3. into:
  4. foo
  5. bar
  6.  
  7. :g/foo/ copy . | s//bar/g
Advertisement
Add Comment
Please, Sign In to add comment