Article View: comp.editors
Article #1378Re: VI??? GROSS!
From: John Cheevers
Date: Fri, 13 Nov 1992 19:28
Date: Fri, 13 Nov 1992 19:28
18 lines
1254 bytes
1254 bytes
mikeg@asylum.tmc.edu (Michael Grabenstein) writes:
> Moving columns around??? What editor will unless it is a
>word processor that can do columns, then its easy. But in vi
>my suggestions would be to use a seperate named buffer for each
>line in the column and then place and join. (vi command for
^^^^ word?
>getting jsut characters: "ayl a is the same as above and yl is
>yank letters, getting easier? :)
This could give you problems with lining up columns.
An easier way is to pipe the paragraph through awk:
!} awk '{ printf "\%10s\%10s\%20s\n", $3, $2, $1}'
or :10,14 ! awk '{ printf "\%10s\%10s\%20s\n", $3, $2, $1}'
John Cheevers
cheevers@cs.wisc.edu
Technical Details
Message-ID:
<1992Nov13.192831.29277@cs.wisc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!darwin.sura.net!wupost!uwm.edu!daffy!uwvax!wolf.cs.wisc.edu!cheeversReferences:
<1992Nov12.232530.18958@wixer.cactus.org> <1992Nov13.124435.20019@cas.org> <1992Nov13.152821.6781@nsisrv.gsfc.nasa.gov>Show Full Headers
Complete Article Headers
Newsgroups: comp.editors Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!darwin.sura.net!wupost!uwm.edu!daffy!uwvax!wolf.cs.wisc.edu!cheevers From: cheevers@wolf.cs.wisc.edu (John Cheevers) Subject: Re: VI??? GROSS! Message-ID: <1992Nov13.192831.29277@cs.wisc.edu> Sender: news@cs.wisc.edu (The News) Organization: University of Wisconsin, Madison -- Computer Sciences Dept. References: <1992Nov12.232530.18958@wixer.cactus.org> <1992Nov13.124435.20019@cas.org> <1992Nov13.152821.6781@nsisrv.gsfc.nasa.gov> Date: Fri, 13 Nov 1992 19:28:31 GMT Lines: 18