Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site wanginst.UUCP Path: utzoo!linus!wanginst!gill From: gill@wanginst.UUCP (Timothy D. Gill) Newsgroups: net.unix Subject: vi editor -- how do you :unmap or :unabbreviate all settings? Message-ID: <1316@wanginst.UUCP> Date: Tue, 12-Nov-85 13:49:58 EST Article-I.D.: wanginst.1316 Posted: Tue Nov 12 13:49:58 1985 Date-Received: Wed, 13-Nov-85 04:01:20 EST Distribution: net Organization: Wang Institute of Graduate Studies, MA 01879 Lines: 22 I find that I exceed the limit in the vi editor for defining mapped keys and abbreviations: I have about 40 total of both defined for my normal day-to-day use. However, I have an additional 20 defined for use with Bibliography creation and C program creation. I have worked out a way using csh aliases for invoking vi for bibliography or C files so that I get a different .exrc file to be used, but I would rather use the :unmap, :unabbreviate and :source commands in vi to change my maps and abbreviations. This would allow me to stay in a single vi session all day, and only change my maps and abbreviations when I need to. My question is: is there a quick way to unmap and unabbreviate ALL of my current mappings and abbreviations, such that I could so a sequence, say, like this: :unmap * :unab * :source $HOME/.vi-maps-for-C I have tried using * or all as an argument to both the :unmap and the :unab commands, but this does not work. And I cannot find another command to do it. We have vi Version 3.7, 6/10/83, under Ultrix 1.0 (BSD 4.1).