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: How to add VIM * functionality in EMACS VIPER mode? Date: Sun, 06 Nov 2005 03:41:03 +0100 Message-ID: <436D6D3F.5040702@student.lu.se> References: <1131238350.577918.73380@f14g2000cwb.googlegroups.com> <266164370511051655y10956964p@mail.gmail.com> <436D5C27.1050707@student.lu.se> <266164370511051801n8fd4980o@mail.gmail.com> <436D6689.1090604@student.lu.se> <266164370511051832l24a84128y@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1131244909 19724 80.91.229.2 (6 Nov 2005 02:41:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Nov 2005 02:41:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 06 03:41:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EYaTB-0000u1-Th for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Nov 2005 03:41:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYaTA-0007X6-PA for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Nov 2005 21:41:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EYaSw-0007Wt-GY for help-gnu-emacs@gnu.org; Sat, 05 Nov 2005 21:41:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EYaSv-0007Wh-3z for help-gnu-emacs@gnu.org; Sat, 05 Nov 2005 21:41:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYaSv-0007We-1D for help-gnu-emacs@gnu.org; Sat, 05 Nov 2005 21:41:05 -0500 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EYaSv-0002VY-2p for help-gnu-emacs@gnu.org; Sat, 05 Nov 2005 21:41:05 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.060.1) id 4368D3FE000D71E9; Sun, 6 Nov 2005 03:41:03 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Weihua JIANG In-Reply-To: <266164370511051832l24a84128y@mail.gmail.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:30856 Archived-At: In version 22.0.50 viper-toggle-key is a defcustom. Use C-h v viper-toggle-key RET to get the description for the variable. There is an underlined link to "customize" where you can change it. I do not know why it does not work in .viper any more. However the Customize is much better here since you can change it while you are running Emacs. I have entered [(f6)] for the value in Customize. Weihua JIANG wrote: > Lennart, > > Another question about viper: how to change the key for viper modes > change? The default one is C-z and I set variable > viper-toggle-key to "\C-q" in my .viper file. However, now both C-z > and C-q is able to switch between viper modes. But, my hope is to bind > C-z to undo as CUA mode does! > > My environment: emacs 22.0.50 CVS + CUA mode enabled! > > Anyone can give a help? > > Thanks, > Weihua Jiang