Path: utzoo!attcan!uunet!zephyr!tektronix!orca!ozvax!mmm From: mmm@ozvax.WV.TEK.COM (Michelle Manning) Newsgroups: comp.unix.questions Subject: Answer to vi question: How to return to visual mode. Message-ID: <1747@ozvax.WV.TEK.COM> Date: 16 Jun 89 16:54:37 GMT Reply-To: mmm@ozvax.UUCP (Michelle Manning) Organization: Tektronix, Inc., Wilsonville, OR. Lines: 34 ** 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 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!!" ==================================================================