Path: utzoo!news-server.csri.toronto.edu!rutgers!usc!rpi!ispd-newsserver!garden!weimer From: weimer@garden.kodak.COM (Gary Weimer (588-0953)) Newsgroups: comp.editors Subject: Re: Vi map help needed Keywords: vi Message-ID: <1991Mar11.154304.10163@ssd.kodak.com> Date: 11 Mar 91 15:43:04 GMT References: <1991Mar2.210747.26919@solo.csci.unt.edu> <1991Mar04.162508.352@ddsw1.MCS.COM> <1991Mar08.181732.2458@demon.co.uk> Sender: news@ssd.kodak.com Reply-To: weimer@ssd.kodak.com Organization: Eastman Kodak Co.; Rochester, NY Lines: 25 In article <1991Mar08.181732.2458@demon.co.uk>, cliff@demon.co.uk (Cliff Stanford) writes: |> On a similar problem, can anyone *please* tell me why the following |> does not work? |> map! ^F ^V^M { /* ^V^[?(^V^MyB``pa */ ^V^[yypr}O |> It is supposed to take the following line type |> int xyzzy() |> and make: |> int xyzzy() |> { /* xyzzy */ |> |> } /* xyzzy */ |> what it does is to make: |> int xyzzy() |> { /* a */ |> |> } /* a */ It works fine in my vi (SunOS 4.1.1). You might want to try using named buffers, i.e.: map! ^F ^V^M { /* ^V^[?(^V^M"ayB``"apA */ ^V^[yypr}O weimer@ssd.kodak.com ( Gary Weimer )