On 25/05/11 02:08, Dave Land wrote:
[...]
PS: While reading up on this, I discovered something new, at least to me:

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/

Use:

   :s/Copyright \zs2007\ze All Rights Reserved/2008/

How cool is that?


Quite cool, and of course, in this particular case you could even do

  :s/Copyright 200\zs7\ze All Rights Reserved/8/

;-)


Best regards,
Tony.
--
Basic, n.:
        A programming language.  Related to certain social diseases in
that those who have it will not admit it in polite company.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to