1.
Save typing by using \zs
and \ze
to set the start and end of a pattern. For example, instead of:
-
:s/Copyright 2007 All Rights Reserved/Copyright 2008 All Rights Reserved/
You can use other delimiters with substitute:
-
:s#http://www.example.com/index.html#http://example.com/#