From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Earl Newsgroups: gmane.emacs.help Subject: Re: vim mode for emacs? Date: Mon, 28 Feb 2005 16:30:42 -0700 Organization: XMission http://www.xmission.com/ Message-ID: <87zmxoqn31.fsf@xmission.com> References: <1122udahifdp52d@corp.supernews.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109633482 20372 80.91.229.2 (28 Feb 2005 23:31:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2005 23:31:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 01 00:31:22 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D5uM7-0005Rh-Uf for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Mar 2005 00:31:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5ueZ-0003ng-LT for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Feb 2005 18:50:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!nnrp.xmission!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: jearl.dsl.xmission.com Original-X-Trace: news.xmission.com 1109633731 8058 166.70.40.63 (28 Feb 2005 23:35:31 GMT) Original-X-Complaints-To: abuse@xmission.com Original-NNTP-Posting-Date: Mon, 28 Feb 2005 23:35:31 +0000 (UTC) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX6+voBAQGioqL////9 /f3n5+fHx8cUFBTSngI1AAAB9UlEQVQ4jXWUwW7jIBCGUQtz9158bS3FuUayHwDJmDOyYnJFlvGe aynx63dmCOnG3aBIGL4MzPw/IJbUpvq5X0QQ3GzolY9O2JlGUoAIxrTGGBX0tG21AIcDIw0BaRjA V1FsH3DmoeQI+rThb4HtdgcU0TRd0zQqfmFEUXqHo1Z2CLSkPWCh+aJc5p89uKkpgZqXao3NoM8g vATtM8DN0x77pVQ4ElhhD+xMa5XXVPlTRP+JAe4fIEUCBqo1aAhaC/yBiCM3f+AuDovnGS/q//sx 0VLUVPJFghO+qh350bCcfWiMltpAUMdtuyXZSV0ETds1LcyX5Auq26WsZNtpNGj8TL48tEq9tp7m iz9+BwwMDMo9kHBJYNmB9xyxB/o18OzL+ntzl9Jl2bURJwInKVrrqMDyg2TX7yiKmgVXah1LQlqh dDqLiD6gfiiihtey12OMkYwif/w4RI92jeOAIqpqjWip9McqCDjr4Vg5jekqPDdl6INKh+FsMav1 bEUcqKKbmlmkK/B1KA+YFR+0cozpwPkxVY6nhCstYr4GDz/SRHHIh/oh4h1cM7jsQP0rIt6XWrY0 8WNtzipF5KwQTPyh8nXmP3IdcGT9wxsfNBuo4DWQ7PhUVE7NJ3oyJMyq4qcDRRR+cRqN6rFHPxQ/ Nljgi2fpG2hJAOwln9FOAAAAAElFTkSuQmCC User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:emE4xtF1stbjtA4MZ1GK5aD9CZs= Original-Xref: shelby.stanford.edu gnu.emacs.help:128899 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24442 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24442 Paul Tremblay writes: > On Mon, Feb 28, 2005 at 07:47:09PM +0000, J. David Boyd wrote: >> >> >> There are some config variables that set which mode is active for >> which file type. >> > > Sorry if this sounds dumb (I am new to emacs), but I will need both > modes--if that is at all possible. In other words, I will want to > use the powerful XML mode--only available on emacs and recomended by > the TEI group--but I would like to be able to move the cursor by > means of vim-like key bindings. > > Paul That's not a dumb question at all. Clearly the whole point of using Emacs in some sort of vi-emulation mode is that you want to be able to use the Emacs' cool text editing modes while still retaining vi emulation. You can definitely run viper and nxml modes at the same time (just tried it). In fact, viper appears to effectively hijack your emacs session. Once I run viper-mode I get viper mode pretty much everywhere. So just open up an xml file (emacs myfile.xml) and then type in M-x viper-mode, it will probably do what you want. You might need to type in M-x nxml-mode to make sure you get the nxml-mode instead of the older xml-mode, but there are quite a few ways to control what mode gets used (which is probably what the original author was talking about). Spend a little time in "info viper" for more information. Jason