Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!sci.kun.nl!cs.kun.nl!hansm From: hansm@cs.kun.nl (Hans Mulder) Newsgroups: comp.editors Subject: Re: How do I do this in VI? Message-ID: <3096@wn1.sci.kun.nl> Date: 23 Apr 91 19:58:35 GMT References: <1991Apr15.223037.23316@massey.ac.nz> <1991Apr15.233023.10882@convex.com> <2243@amsaa-cleo.brl.mil> Sender: root@sci.kun.nl Organization: University of Nijmegen, The Netherlands Lines: 19 In <2243@amsaa-cleo.brl.mil> mcohen@amsaa-cleo.brl.mil (Marty Cohen) writes: >Ie. Control-M becomes control-J before it gets to vi. >Am I wrong about this? Does vi disable this mode of the terminal handler? Yes, you are wrong. Yes, vi disables this mode. In fact control-M and control-J are both cursor motion commands in vi, and do different things. Control-J aka Linefeed move the cursor straight down (if possible), just like j, control-N and down-arrow. Control-M aka Return moves the cursor to the first non-whitespace character on the next line (if there is one), just like + and 2_. You might try things out before you post. -- Have a nice day, Hans Mulder hansm@cs.kun.nl