cantrell@killer.Dallas.TX.US (Keith Cantrell) (03/10/89)
A vi feature I miss is the way vi keep track of where the cursor is as you move up and down lines. In vi if I am on column 30 and move to a line that only has 10 character on it, the cursor goes to the end of the line, but when I get to a line that has more than 30 characters on it, the cursor will go back to column 30. Emacs on the other hand will either, stay at column 10 and eventually go to the beginning of the line when I hit on empty line and stay there, or I can set some variable to make it track the end of the line, but that's not what I want. Has anybody every hacked the sources to change this? Keith ----------------------------------------------------------------------- Keith Cantrell Phones: hm: 214-492-1088 Integrated Telecom wk: 214-234-3340 USMAIL: EMAIL: 2100 Sonata Ln cantrell@killer.DALLAS.TX.US Carrollton TX 75007 or ...!uunet!{killer | texsun | letni}!dalitc!keith -----------------------------------------------------------------------
barmar@think.COM (Barry Margolin) (03/11/89)
In article <7494@killer.Dallas.TX.US> cantrell@killer.Dallas.TX.US (Keith Cantrell) writes: >A vi feature I miss is the way vi keep track of where the cursor is >as you move up and down lines. What flavor of Emacs are you using? All the Emacs implementations I've used significantly (the original PDP-10 EMACS, Multics Emacs, Zmacs, GNU Emacs) do what you say. In the case of GNU Emacs, I just tried it in version 18.52 and it does what you want. Remember, there are a zillion Emacs variants around. You MUST specify the dialect and version when asking for help. Barry Margolin Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar
cantrell@killer.Dallas.TX.US (Keith Cantrell) (03/12/89)
In article <7494@killer.Dallas.TX.US> cantrell@killer.Dallas.TX.US (Keith Cantrell) writes: >A vi feature I miss is the way vi keep track of where the cursor is >as you move up and down lines. In vi if I am on column 30 and move >to a line that only has 10 character on it, the cursor goes to the >end of the line, but when I get to a line that has more than 30 >characters on it, the cursor will go back to column 30. Emacs >on the other hand will either, stay at column 10 and eventually >go to the beginning of the line when I hit on empty line and stay >there, or I can set some variable to make it track the end of the line, >but that's not what I want. Has anybody every hacked the >sources to change this? > I guess my version of emacs (GNUEMACS VERSION 18.52) is broke. I have checked the variables "goal-column" and "track-eol" and they are both nil, but the cursor still does not do what I want it to. The version I have runs on an Apollo so I guess I need to ask Leonard N. Zubkoff to see if he knows what the problem since it appears to be only happening to me. Type at you later, Keith ----------------------------------------------------------------------- Keith Cantrell Phones: hm: 214-492-1088 Integrated Telecom wk: 214-234-3340 USMAIL: EMAIL: 2100 Sonata Ln cantrell@killer.DALLAS.TX.US Carrollton TX 75007 or ...!uunet!{killer | texsun | letni}!dalitc!keith -----------------------------------------------------------------------
bet@dukeac.UUCP (Bennett Todd) (03/15/89)
In article <7494@killer.Dallas.TX.US> cantrell@killer.Dallas.TX.US (Keith Cantrell) writes: >A vi feature I miss is the way vi keep track of where the cursor is >as you move up and down lines. In vi if I am on column 30 and move >to a line that only has 10 character on it, the cursor goes to the >end of the line, but when I get to a line that has more than 30 >characters on it, the cursor will go back to column 30. Emacs >on the other hand will either, stay at column 10 and eventually >go to the beginning of the line when I hit on empty line and stay >there, or I can set some variable to make it track the end of the line, >but that's not what I want. Has anybody every hacked the >sources to change this? It would really bother me if emacs behaved as you describe; happily, none of the EMACS style editors I keep handy act that way. All I have are GNU EMACS Version 18.52, JOVE Version 4.9, and ELLE Version 4.1b; I didn't bother to keep executables of any of the other varients around as I don't seem to need them. (In case folks are curious, the reasons I keep the versions around are: GNU EMACS of course does everything; JOVE is extremely nice and doesn't take nearly so long to fire up; ELLE can edit files much, much, much larger than virtual memory.) Perhaps if you mentioned what version of EMACS you are using (perpetual gripe about postings to this danged group). To be precise, every EMACS style editor I tried followed the extreme end of line for all lines shorter than the current column as I moved the cursor up and down lines, always recovering the original column as I came to any line long enough. -Bennett bet@orion.mc.duke.edu P.S. Maybe we should moderate this group, with a posting requirement (enforced by the reflector at the moderator's address) that no message may be posted without a header field 'Emacs-Version: ' describing what version of EMACS it referred to?:-)