Re: An Editor that Skips to the End of a Def



In message <5lhs4pF8bkunU1@xxxxxxxxxxxxxxxxxx>, Bjoern Schliessmann wrote:

Lawrence D'Oliveiro wrote:

After two decades of putting up with vi just to ensure
compatibility with every proprietary *nix system I might come
across, let me just say ...

USE EMACS!

Nah. Use vim.

Every other text editor I have ever used understands that the current
position in a file is _between_ two characters (or before the first
character, or after the last character), not _on_ a character. But not vi
and its ilk.

Try the following in vi/vim: Move to some point in the middle of a line.
Press "i" to get into insert mode. Press escape to get out again. You'll
end up one position to the left of where you were before. Press "i", and
then escape again--you've moved another position left. Why is it incapable
of keeping track of such a simple thing as your current position in the
file?

Why does it need two different insert commands, "i" versus "a"? Because one
of them can't insert at the end of a line, and the other can't insert at
the beginning.

And why have command-versus-insert mode at all? No other text editor still
surviving uses such an antiquated concept.
.



Relevant Pages

  • Re: An Editor that Skips to the End of a Def
    ... Every other text editor I have ever used understands that the ... before the first character, or after the last character), not ... Press escape to ... The existence of command mode allows plain old keystrokes to be ...
    (comp.lang.python)
  • OT: Editor like CygnusEd on Amiga
    ... Can anyone give me a recommendation about an editor that is as close as ... the cursor character by character. ... Turbo does not scroll at all, ...
    (Fedora)
  • Re: Need an Editor source code in Pascal - SOS :(
    ... Your homework assignment is to write a text editor program, ... trying to write a decent text editor program, ... The TAB character should not be a valid character, ... You need to create a scroll window: an structure where to scroll the SLO ...
    (comp.lang.pascal.borland)
  • Re: Difference between VC++ and UNIX
    ... grammar that describes how you interact with the editor. ... One way to think of this is that every command you can give the editor ... if I type C-x in emacs, that puts me in a state where typing "u" ... will be in a state where a keypress inserts the literal character. ...
    (comp.programming)
  • An idea
    ... Take a text editor. ... Set the high order bit of text ... (i.e. the value of the high order bit of the ith character depends on the ... editor was a WYSIWYG XML editor with decent editing features, ...
    (sci.crypt)