I use Emacs most of the time, but occasionally use vi for quick edits or on
those rare machines which don't have Emacs. I've used vi for eons, so I'm
pretty proficient with standard vi, though I occasionally get my fingers
out of phase with which editor I'm using and find myself with ":wq" in my
Emacs buffer or doing Emacs keystrokes in vi. Usually this is no big deal,
I kick myself a couple times, get my brain back on the right track and
continue.
One thing that's been annoying me, however, is something that happens in
RedHat where "vi" isn't really the standard "vi", but rather "vim". I
finish what I'm editing, my Emacs-fingers type CTRL-X CTRL-C, and "vi"
(really vim) displays: "-- ^X mode (^E/^Y/^L/^]/^F/^I/^K/^D/^N/^P) --".
Now I'm trapped -- *NOTHING* I type seems to let me escape from this mode.
I end up having to kill vi from another window and re-edit the file. On my
home machines, I've made "vi' be a script which does "vim -C", giving me
the "classic" vi. Often, however, I'm helping someone else with their
problems on another machine when this happens to me.
Reading the docs, though I might have missed something, would lead me to
think that CTRL-X doesn't do anything interesting in command-mode as
opposed to text/insert mode.
Unfortunately, I can't reproduce this problem at the moment. Trying it
now, when I'm in command-mode, CTRL-X just beeps, reminding me of my error
and I just do ":wq" or "ZZ" or whatever. The "trapped by CTRL-X" behavior
has happened to me dozens of times, but I can't figure out what I might
have done differently on those occasions. If I do CTRL-X CTRL-C while
still in text mode, the CTRL-C gets me out of CTRL-X mode and there's no
problem.
Has anyone else had this problem? Do you know what triggers it? Is there
a way to escape without killing the process?
pete peterson
GenRad, Inc.
7 Technology Park Drive
Westford, MA 01886-0033
[EMAIL PROTECTED] or [EMAIL PROTECTED]
+1-978-589-7478 (GenRad); +1-978-256-5829 (Home: Chelmsford, MA)
+1-978-589-2088 (Closest FAX); +1-978-589-7007 (Main GenRad FAX)
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.