Re: Vim: edit a register?
- From: kar1107@xxxxxxxxx
- Date: 1 Sep 2005 13:28:04 -0700
Mikolaj Machowski wrote:
> 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()
Great.. exactly what I was looking for. Seems like there is a ton
of built-in functions which I never knew.
http://vimdoc.sourceforge.net/htmldoc/eval.html#functions
Thanks,
Karthik
>
> 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
.
- References:
- Vim: edit a register?
- From: kar1107
- Re: Vim: edit a register?
- From: Mikolaj Machowski
- Vim: edit a register?
- Prev by Date: Re: Is This Possible with gVIM ?
- Next by Date: Re: Is This Possible with gVIM ?
- Previous by thread: Re: Vim: edit a register?
- Next by thread: GVIM: Is it possible to delete menu item?
- Index(es):
Relevant Pages
|
Loading