On Tuesday 16 February 2010 07:00:43 pm Tim Chase wrote:

> sc wrote:
> > On Tuesday 16 February 2010 06:33:28 pm Ben Schmidt wrote:
> >> :let g:a=0|%s/^\*/\=Inc(g:a).")"
> >
> > 
> > don't you need an ending forward slash for the substitute?
> 
> Nope.  You don't even need the 2nd slash if you want to
>  replace  with nothing.  The following 3 are the same:
> 
>    :%s/foo
>    :%s/foo/
>    :%s/foo//
> 
> The only time you need the 3rd delimiter is if you need to
>  pass  flags to the :substitute command.

dang!  and i thought i knew how to substitute!

humbled yet again

sc

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to