From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Viper: replacing text? Date: Thu, 3 Sep 2009 17:05:33 +0200 Message-ID: References: <058f0626-a0d0-4d45-b8a6-01e948464151@j4g2000yqa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1251990651 4950 80.91.229.12 (3 Sep 2009 15:10:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2009 15:10:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Elena Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 03 17:10:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MjDxG-0004Ga-KE for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Sep 2009 17:10:30 +0200 Original-Received: from localhost ([127.0.0.1]:49128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjDxF-0000Il-Sa for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Sep 2009 11:10:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjDsx-0003n5-09 for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 11:06:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjDss-0003ia-93 for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 11:06:02 -0400 Original-Received: from [199.232.76.173] (port=36414 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjDss-0003hc-1P for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 11:05:58 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.241]:54742) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjDsp-0005O9-LT for help-gnu-emacs@gnu.org; Thu, 03 Sep 2009 11:05:55 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so842975ana.21 for ; Thu, 03 Sep 2009 08:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=TI9u0gZxoe6JWcVv3HrZuLDIOHUoNH8fRfTfbV8RQ7U=; b=LrHW9D297z58Q/DZAzWjG2/bOuECj/qtQ2VXvLvQOujAUFfQn4+qq+4LA4WE4Ww9g8 w/gt3CztzYBONiz0NA+w6vHmLqG4fsp2BsU3ObjM5p/pAt54boH82uHLb9IlaAg5+1Uh RqWexwzGogQIw3sFncxgSiy1KEc7v6PrzU1s4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=dzbRrWGz0X0AkyOl542XuXrejvruNU9NMDs0PV5Mv5e/OfnH8BV8xh26DUm3zshEtm Kphjwx1ytuH/6ARn9p7N5t+NNkX332O3PpR+JP5g7Vr1RUxXShKyhHzA+77Lqjrclz+D FUwUpz/gAwzzEyMsVJe9xJ4t/1yIE4qbbBqmw= Original-Received: by 10.100.18.15 with SMTP id 15mr10894760anr.48.1251990353142; Thu, 03 Sep 2009 08:05:53 -0700 (PDT) In-Reply-To: <058f0626-a0d0-4d45-b8a6-01e948464151@j4g2000yqa.googlegroups.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67801 Archived-At: On Thu, Sep 3, 2009 at 4:11 PM, Elena wrote: > Hello, > > how do I replace text with previous kill? > > That is: I kill (or copy) a word, then travel to another word and I'd > like to replace the latter with the former. Currently I paste the > first word, move a character to the right and kill the second word, > but I don't think that's the faster way to do it. It probably is since you have to tell Viper somehow what you want to replace. However if you want to do it many times you may want to define a macro or even a function for doing this.