Re: Vim: edit a register?



kar1107@xxxxxxxxx scripsit:
> Hi,
>
> Tried Internet search..couldn't find a right answer.
>
> Can I do a substitution on a register content?
> I would like to yank a few C functions into register a.
> Then do some s/foo/bar on contents of a; then paste a.
> Repeat the process multiple times (with s/bar/baz.. etc).

:let @a = substitute(@a, "bar", "baz", "")

:help substitute()

m.
--
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078
vim.pl - http://skawina.eu.org/mikolaj
CLEWN - http://clewn.sf.net
.



Relevant Pages

  • Re: Vim: edit a register?
    ... Repeat the process multiple times (with s/bar/baz.. ... > is time consuming to mark and copy and do the substitution. ... > What I like to do is, yank the "template" code into a register, say a. ...
    (comp.editors)
  • Vim: edit a register?
    ... I would like to yank a few C functions into register a. ... It is time consuming to mark and copy and do the substitution. ... template code in this file and do the %s onit. ...
    (comp.editors)
  • Re: Vim: edit a register?
    ... >> Tried Internet search..couldn't find a right answer. ... >> Can I do a substitution on a register content? ... >> I would like to yank a few C functions into register a. ... of built-in functions which I never knew. ...
    (comp.editors)
  • Re: Cant register Office 2000 - I can use it only 30 more times!
    ... As I explained in my long description, the "Wizard" won't allow me to go ... Another option "register by email" apparently ... found the need to reinstall/register. ... but I think the register by internet must have worked. ...
    (microsoft.public.office.setup)
  • LoCoS: Join in a test about an international symbol language.
    ... have a computer with internet access (Internet Explorer, ... Then please, register at ... Fill in the red marked fields of your profile - click on "Profile" and then "Forum Profile Information". ...
    (soc.culture.misc)

Loading