home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / editors / 2745 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1.2 KB  |  30 lines

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