[net.sources] cut and paste for vi revisited

jgc@sunrise.UUCP (Jim Constantine) (08/29/83)

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