Re: Vim: edit a register?
- From: Mikolaj Machowski <mikmach@xxxxx>
- Date: Thu, 1 Sep 2005 08:13:14 +0000 (UTC)
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
.
- Follow-Ups:
- Re: Vim: edit a register?
- From: kar1107
- Re: Vim: edit a register?
- References:
- Vim: edit a register?
- From: kar1107
- Vim: edit a register?
- Prev by Date: Re: Moving Between Paragraphs
- Next by Date: Re: Moving Between Paragraphs
- Previous by thread: Re: Vim: edit a register?
- Next by thread: Re: Vim: edit a register?
- Index(es):
Relevant Pages
|
Loading