From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Weihua JIANG Newsgroups: gmane.emacs.help Subject: How to add VIM * functionality in EMACS VIPER mode? Date: Sun, 6 Nov 2005 08:55:18 +0800 Message-ID: <266164370511051655y10956964p@mail.gmail.com> References: <1131238350.577918.73380@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2003698316==" X-Trace: sea.gmane.org 1131238599 8679 80.91.229.2 (6 Nov 2005 00:56:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Nov 2005 00:56:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 06 01:56:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EYYon-0002KW-V8 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Nov 2005 01:55:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYYon-0007E0-EM for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Nov 2005 19:55:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EYYob-0007Du-IT for help-gnu-emacs@gnu.org; Sat, 05 Nov 2005 19:55:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EYYoa-0007Dh-3x for help-gnu-emacs@gnu.org; Sat, 05 Nov 2005 19:55:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYYoa-0007De-1E for help-gnu-emacs@gnu.org; Sat, 05 Nov 2005 19:55:20 -0500 Original-Received: from [64.233.184.200] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EYYoa-0006Eh-8e for help-gnu-emacs@gnu.org; Sat, 05 Nov 2005 19:55:20 -0500 Original-Received: by wproxy.gmail.com with SMTP id 69so118753wra for ; Sat, 05 Nov 2005 16:55:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jxJI38qBYb+TPvTjnFYVB2kXupU9M004eCEs78Dwr221kTU8zXBuzt2wVKiGcjV9kRxaLaFpD57xVZlK2zXzAlqyqT3nD5A/Ail73KNFAvsexC22QE5Pz/9R1LOnGf+nCUkwK9Y372Kk3p7paTC5reaN+KJ4Be3HWkJi5pvgips= Original-Received: by 10.65.147.10 with SMTP id z10mr3828909qbn; Sat, 05 Nov 2005 16:55:18 -0800 (PST) Original-Received: by 10.65.114.12 with HTTP; Sat, 5 Nov 2005 16:55:18 -0800 (PST) Original-To: help-gnu-emacs@gnu.org In-Reply-To: <1131238350.577918.73380@f14g2000cwb.googlegroups.com> 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:30850 Archived-At: --===============2003698316== Content-Type: multipart/alternative; boundary="----=_Part_12205_2965261.1131238518805" ------=_Part_12205_2965261.1131238518805 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline In normal mode of VIM, there is a very good functionality: when cursor under any position of a word, you can press key "*" to use the whole word under cursor (including both the chars before the cursor and after it) as search pattern. Now I switched to EMACS with VIPER mode. But VIPER lacks such functionality. Can any one tell me how to implement it in VIPER with some elisp code? Thanks Weihua Jiang ------=_Part_12205_2965261.1131238518805 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline In normal mode of VIM, there is a very good functionality: when cursor
u= nder any position of a word, you can press key "*" to use the who= le
word under cursor (including both the chars before the cursor and aft= er
it) as search pattern.

Now I switched to EMACS with VIPER mode. = But VIPER lacks such
functionality. Can any one tell me how to implement= it in VIPER with
some elisp code?

Thanks
Weihua Jiang

------=_Part_12205_2965261.1131238518805-- --===============2003698316== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============2003698316==--