I have an ipv6 hosts file. No I want to add a comment symbol # to each line that having "google.com.hk".
How could I do this in vim? I thought it would be something like %s/^.*google\.com\.hk/^#???/.
thanks.
|
feedback
|
|
Use
or, to avoid replacing things like
Alternatively, use the
| |||||
feedback
|
|
Like this:
This tells VIM to search for what's in the parentheses, in this case Alternatively, you could do:
Where the | |||
|
feedback
|