Xref: utzoo comp.sys.att:7588 unix-pc.general:3735 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!husc6!spdcc!gnosys!gst From: gst@gnosys.UUCP (Gary S. Trujillo) Newsgroups: comp.sys.att,unix-pc.general Subject: Re: vi missing commands on 3b1 Summary: why not just map ctrl-^ ? Keywords: vi 3b1 Message-ID: <352@gnosys.UUCP> Date: 16 Sep 89 00:25:19 GMT References: <15580@duke.cs.duke.edu> <3192@cbnewsc.ATT.COM> Reply-To: gst@gnosys.UUCP (Gary S. Trujillo) Distribution: usa Organization: gst's 3B1 - Somerville, Massachusetts Lines: 20 In article <3192@cbnewsc.ATT.COM> psfales@cbnewsc.ATT.COM (Peter Fales) writes: > In article <15580@duke.cs.duke.edu>, pusateri@romeo.cs.duke.edu (Thomas J. Pusateri) writes: > > Does anyone know why ctrl-^ doesn't work with the unix-pc 3.51 version of vi? > I believe the problem here is not vi, but the way that characters are mapped > to the keyboard. Holding down shift, control, and the "6" key does not > send a ctrl-^ character... Yeah. Shift-ctrl-6 generates ESC-P-f (as does just ctrl-6). However, you can easily use vi's "map" command to cause ctrl-6 to do what you want: map ^[Pf :e #^M I tried it and it worked just fine. (You'll have to use ^V to enter the ctrl-6 and ^M characters into your ~/.exrc file.) -- Gary S. Trujillo {linus,bbn,m2c}!spdcc!gnosys!gst Somerville, Massachusetts {ima,stech,wjh12,cdp}!gnosys!gst