vile
[Top][All Lists]
Advanced

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

Re: [vile] searching for register contents


From: Thomas Dickey
Subject: Re: [vile] searching for register contents
Date: Wed, 03 Jul 2013 21:14:31 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Jul 03, 2013 at 05:01:34PM -0400, Wayne Cuddy wrote:
> On Thu, Jun 27, 2013 at 08:40:21PM -0400, Thomas Dickey wrote:
> > On Thu, Jun 27, 2013 at 03:47:57PM -0400, Wayne Cuddy wrote:
> > > If I yank a word (or words) into a register is there a way to search
> > > the current buffer for that registers contents?
> > 
> > hmm.  That puts the content into the unnamed buffer as well as 
> > kill-buffer-1.
> > The $kill variable gets part of that (I recall as the first chunk, which
> > should be enough for word/words), so you could assign that to $search,
> > and use it - provided there are no metacharacters.
> >
> 
> So how do I set $search to $kill?
> 
> The following sequence
> 
> set-variable $search $kill

This seems to work as I would expect (putting it in a file and source'ing it):

setv $search=$kill
show-register
show-variables

...which should work in a macro.  If using the : prompt, then there is no 
substitution
performed.
 
> assigned the literal string $kill to search and not the content of
> the variable. Is this something I need to use a procedure along with
> the &cat command in order to achieve?

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]