Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site mtxinu.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!genrad!panda!talcott!harvard!seismo!lll-crg!dual!unisoft!mtxinu!ed From: ed@mtxinu.UUCP (Ed Gould) Newsgroups: net.unix-wizards Subject: Re: VI question: how to initialize a named buffer from EXINIT? Message-ID: <461@mtxinu.UUCP> Date: Tue, 10-Sep-85 23:36:15 EDT Article-I.D.: mtxinu.461 Posted: Tue Sep 10 23:36:15 1985 Date-Received: Sat, 14-Sep-85 06:01:20 EDT References: <892@turtlevax.UUCP> Reply-To: ed@mtxinu.UUCP (Ed Gould) Organization: mt Xinu, Berkeley, CA Lines: 19 Summary: Expires: Sender: Followup-To: Distribution: Keywords: In article <892@turtlevax.UUCP> ken@turtlevax.UUCP (Ken Turkowski) writes: >I'd like to initialize a named buffer (maybe more) with some well-used >commands (like removing blanks at the end of a line), so that I only >need to execute the @ command to execute them. Did you consider defining maps? With them, one can define any key - including function keys if available - to be a command. For example, to define the "b" key to remove any trailing blanks, one might use :map b :1,$s/ *$//^[ Note that ^[ is the escape key, ant must be preceeded by control-V (^V) to get it into the command. Try it. -- Ed Gould mt Xinu, 2910 Seventh St., Berkeley, CA 94710 USA {ucbvax,decvax}!mtxinu!ed +1 415 644 0146 "A man of quality is not threatened by a woman of equality."