Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bloom-beacon!bu-cs!encore!calliope!boykin From: boykin@calliope.Encore.COM (Joseph Boykin) Newsgroups: comp.unix.questions Subject: Re: vi question. How to return to visual mode. Keywords: Stuck in command mode, how to return to visual mode. Message-ID: <8473@xenna.Encore.COM> Date: 15 Jun 89 13:49:54 GMT References: <159@jma.UUCP> Sender: news@Encore.COM Reply-To: boykin@calliope.UUCP (Joseph Boykin) Organization: Encore Computer Corp, Marlboro, MA Lines: 23 In article <159@jma.UUCP> max@jma.UUCP (Max Heffler @ Landmark Graphics) writes: >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? The "unknown key sequence" is "Q"; which means to "quit" from visual mode into ex mode. To get back into visual mode, issue the command ":visual" (minimal abbreviation is "vi". I sometimes use "Q", followed by a "set term=" command, followed by a ":vi" command if I my TERM environment variable is set up wrong. It's the only way to change terminal types from within the editor as you can't do it from visual mode. ---- Joe Boykin Encore Computer Corp Vice-Chair, IEEE Computer Societies' Technical Activities Board Internet: boykin@encore.com UUCP: encore!boykin