zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: vi mode question.
Date: Sat, 06 Dec 2014 14:09:38 -0800	[thread overview]
Message-ID: <141206140938.ZM2298@torch.brasslantern.com> (raw)
In-Reply-To: <548215B2.50108@eastlink.ca>

Anyone who knows vi(m) will already know this, but for Ray et al.:

The "insert mode" in vi is for exactly that and only that:  inserting
new text.  You can backspace over mistakes to erase them but you can't
move back and forth over words or lines to make other kinds of changes.

"Command mode" has to be entered (by pressing the ESC key) any time you
want to move around or do any kind of complex editing.  While in the
command mode, you can copy and paste text, but not insert brand new
text (to do that you have to drop back into insert mode again).

You might be fooled by the illusion that arrow keys or page up/down seem
to work in insert mode, but really what those keys are doing is leaving
insert mode to enter command mode, moving the cursor, and then dropping
back into insert mode at the new location.

Emacs is "modeless" which basically means it is in command mode all the
time, except that one of the possible commands is for the most recent
key press to insert itself at the current cursor position.

Either editor could mimic the basic functions of the other (in fact for
the first few years that I used emacs, I used it only with the "evi"
emulator), but that becomes increasingly difficult for the specialized
features.


  parent reply	other threads:[~2014-12-06 22:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-04 18:28 PATCH: default vi-mode key bindings Oliver Kiddle
2014-12-05  7:17 ` Bart Schaefer
2014-12-05  7:35   ` Mikael Magnusson
2014-12-05  7:56     ` Jan Larres
2014-12-05 13:26   ` Oliver Kiddle
2014-12-05 17:46     ` Ray Andrews
2014-12-05 17:59       ` Eric Cook
2014-12-05 18:04       ` richo
2014-12-05 18:55       ` Lawrence Velázquez
2014-12-05 20:29         ` vi mode question Ray Andrews
2014-12-05 21:04           ` Lawrence Velázquez
2014-12-06 22:09           ` Bart Schaefer [this message]
2014-12-06 22:44             ` Ray Andrews
2014-12-07  0:32               ` Christian Neukirchen
2014-12-07  5:02                 ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=141206140938.ZM2298@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).