Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!ub!ubvmsa.cc.buffalo.edu!v087mxgb From: v087mxgb@ubvmsa.cc.buffalo.edu (Shawn E Thompson) Newsgroups: comp.emacs Subject: Re: Make emacs like vi. Message-ID: <48066@eerie.acsu.Buffalo.EDU> Date: 29 Nov 90 00:05:05 GMT References: <1990Nov28.223329.26182@ecf.utoronto.ca> Sender: news@acsu.Buffalo.EDU Reply-To: v087mxgb@ubvmsa.cc.buffalo.edu Organization: University at Buffalo Lines: 26 Nntp-Posting-Host: ubvmsa.cc.buffalo.edu News-Software: VAX/VMS VNEWS V1.3-4.4 >Is it possible to make Emacs function partly like vi, like 'insert' mode >and 'noninsert' mode, undoing certain changes easily, moving cursors >just by pressing 'hjkl'? > Sure! just bind you keys to that function....I have bound a macro which toggles insert mode on and off to my insert key..... for cursor movement (you would probably want to hold a CTRL key or something like that), look in your start up file, "EMACS.RC".....you might put something like (now I forget my EXACT syntax, but this'll give you the flavor); bind-to-key previous line ^K (I think its 'k'...I fergit) bind-to-key forward-character ^L etc...... Shawn E. Thompson "..my sig file was so long, I'm not even allowed a quote..." v087mxgb@ubvms.cc.buffalo.edu | set@autarch.acsu.buffalo.edu University @ Buffalo|Graduate School of Mechanical Engineering CAD Engineering|Leica, Inc.|PO Box 123|Buffalo, NY 14240-0123|(716)891-3375