[comp.unix.questions] Answer to vi question: How to return to visual mode.

mmm@ozvax.WV.TEK.COM (Michelle Manning) (06/16/89)

** I was unable to reach jma by email, and thought that the answer **
** might be of general interest, and so I'm posting this reply.    **


In article <159@jma.UUCP> you write:
>
>Some times, in vi, I hit some unknown key sequence that throws me
>into a command mode that I have not been able to return to visual
>mode from.  Any ideas? 
>

This happened to me many times, until I was able to determine that
the "unknown key sequence" was a shift-Q - which puts you into 
the command mode (where you have a ":" at the bottom of the screen).

Normally, when a ":" command is completed, it will return you to visual
mode.  However, when you use shift-Q, it will *leave* you in ":" command
mode until you tell it you want out.  To tell it that you want to go
back to visual mode, type "vi" at the ":" prompt -

		:vi <RETURN>

You should now be back in visual mode.  Hope this helps!

-mmm	;-)

==================================================================
 Michelle M. Manning, Eng. Ops. Analyst      mmm@ozvax.WV.TEK.COM
 Visual Systems Group, ITD Engineering
 Tektronix, Inc.                                   (503) 685-2644
==================================================================
     "My opinions are the only thing I *can* call my own!!"
==================================================================