Quick text replacement Vi tip
This came about as i wanted to replace just a few lines of text in vi.
Work out what range of lines to select
:set number
Find the lines you wish to modify
35 #Hosts per intl
36 192.168.0.22 uk.dev.site.com
37 192.168.0.22 de.dev.site.com
38 192.168.0.22 es.dev.site.com
[…]