Joining block of text in vi

silver at csu-cs.UUCP silver at csu-cs.UUCP
Mon Aug 29 14:00:09 AEST 1983


Yes, but the more general (and easier) way to accomplish  such tricks in
vi is to use  ":map"  to define  otherwise-unused  keys  (like ^X) to do
things, like pass text through  outside  filters (in your case,  paste).
For  example,  my .exrc  defines  ":map ^X  {!}fmt  -j^M".  I can hit ^X
anywhere in a paragraph  and get it  reformatted  quickly.  Like this...
now watch closely...  wasn't that EASY?

Down with text compiling, what you see is what you deserve!

Alan Silverstein, Hewlett-Packard Fort Collins Systems Division, Colorado
ucbvax!hplabs!hpfcla!ajs, 303-226-3800 x3053, N 40 31'31" W 105 00'43"



More information about the Comp.sources.unix mailing list