Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!letni!mic!convex!convex.COM From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.editors Subject: Re: Why oh Why "Cannot put inside global/macro" Message-ID: <110688@convex.convex.com> Date: 12 Dec 90 05:33:53 GMT References: <14895@sdcc6.ucsd.edu> Sender: usenet@convex.com Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 35 In article <14895@sdcc6.ucsd.edu> ir586@sdcc6.ucsd.edu (J Anthony Deutsch) writes: >Why does the macro: > map q dd1GP >give me the error : > cannot put inside global/macro I *think* it's because of a common buffer used by both operations. Seems to me there's a comment in the code saying it would be fixed "later" date 1980. Sigh. Now, sometimes you can and sometimes you can't: " EXCHANGE MACROS -- for exchanging things " map v xp " exchange current char with next one in edit mode map V :m+1^M " exchange current line with next one in edit mode map! ^P ^V^[hxpa " exchange last typed char with penultimate one in insert mode So for the line ones, you break down and use the mv command, which is ok. You could do this in your case: map q :m1^M'' I like the '' to put me back where I was. --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "With a kernel dive, all things are possible, but it sure makes it hard to look at yourself in the mirror the next morning." -me