plug on 19 Jan 2005 23:53:40 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] vi question


sean finney wrote:

>for the other vi users out there, i haven't been able to dig up
>a way to do this...
>
>
>say i have a line formatted something like this:
>
> -- sean finney <seanius@debian.org>  Wed, 19 Jan 2005 18:16:33 -0500
>
>is there an easy way to replace everything from wednesday on with
>the output of date -R?  that is, i'd like to do something like
>
>s/Wed.*/`date -R`/


s/Wed.*/\=system("date -R")/

Also see

:help sub-replace-special
:help sub-replace-expression

Mike

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug