Tuesday, April 15, 2014

Re: Another SRT questions

Hi John,

What is the meaning of the & in the \u&?

I see that if I remove it that my match is deleted, but I can't find the meaning of the & in this  context.

Rgds,
Jeri


On Mon, Apr 14, 2014 at 11:55 AM, John Beckett <johnb.beckett@gmail.com> wrote:
Jeri Raye wrote:
> For example:
> I want to tell you this. and also this.
>
> How to change this into:
> I want to tell you this. And also this.

:%s/\.\_s*\zs\l/\u&/gc

Perhaps sentences end with other characters, so you might try:

:%s/[.!?]\_s*\zs\l/\u&/gc

John


--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: