Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!dinosaur!ttsi!root From: root@ttsi.lonestar.org (System) Newsgroups: comp.emacs Subject: Followup to: "Real" Vi and Edt emulation packages? Message-ID: <1991Apr26.213036.10363@ttsi.lonestar.org> Date: 26 Apr 91 21:30:36 GMT Sender: root@ttsi.lonestar.org (System) Organization: Tandem Telecommunications Systems Inc. Plano, Tx. Lines: 42 I have been asked to be more specific concerning an earlier posting that aired a peeve about word handling in Emacs. Let me illustrate with a simple example: Here is a random piece of C code: #include Starting with the cursor above the line above, and successively moving forward by word, here is how the cursor moves via emacs, vip-mode emacs, and vi (X marks the spots): emacs vip-mode vi #include #include #include X X X X X X X X XX XX XX XXX Starting from the beginning of the line and deleting successive words, here is how the three environments gobble the line (numbers marking the text deleted for a given delete-word: emacs vip-mode vi #include #include #include 1111111122222333333445 1222222222333344444455 1222222234555677777890 In the case of emacs and vip-mode, above, the end-of-line and stuff from the succeeding line gets deleted as well. In other words, vi treats the non-alphanumeric characters as word delimiters as well as words themselves. This is just one example pulled out of my hat. I'm not saying one approach is inherently better than another, just that I've grown fond of vi's behaviour and want to match it in my emacs environment. Please don't flame my taste. Someone suggested diddling with the syntax table to get the behavior I want. I give--what would the character class assignments be to get the behavior of vi? -- Mark S. Evans Tandem Telecommunications Systems Inc. Phone: 214-516-6201 850 E. Central Parkway Fax: 214-516-6801 Plano, TX 75074 Mail: mse@ttsi.lonestar.org