Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site sunrise.UUCP Path: utzoo!linus!philabs!sunrise!jgc From: jgc@sunrise.UUCP (Jim Constantine) Newsgroups: net.sources Subject: cut and paste for vi revisited Message-ID: <115@sunrise.UUCP> Date: Mon, 29-Aug-83 13:14:27 EDT Article-I.D.: sunrise.115 Posted: Mon Aug 29 13:14:27 1983 Date-Received: Tue, 30-Aug-83 22:26:50 EDT Organization: Sun Microsystems NY Office Lines: 37 Recently some cut and paste "maps" were posted, I have my own version which may be a little bit easier to use and understand. Internaly they use : mc - cut mark mp - paste mark "t - text register giving rise to the following maps :map #1 mc :map #2 mp'c"tddmc'p"tpmp :map #3 mp'c"tddmc'p"tp-J+ which do the following f1 - marks the cut region f2 - paste one line vertically f3 - paste one line horizontally for example take the text : a b c d e f Move to "d" hit "cut" (f1). Move to "a" hit "paste horiz." (f3) three times. This yields : a d b e c f