🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #27

Re: Delete end of line conditionally in VI?

#27
From: Kris Klindworth
Date: Fri, 30 Oct 1992 01:00
32 lines
1064 bytes
R.Singh@massey.ac.nz (R. Singh) writes:

>The sort of thing where I could change

>"A A Turner 9"
>"Accountancy    2"


>"A E Weir   9"
>"Accountancy    2"


>to 


>"A A Turner 9" "Accountancy    2"


>"A E Weir   9" "Accountancy    2"

>meaning look for 9" and execute a J command there.


Look up the global command (g). It will  do what your asking for with
a line like:

:1,$g/9"/j

------------------------------------------------------------------------------
Kris Klindworth                    Internet: krisk@ux1.cso.uiuc.edu
Database Programmer/Analyst        Phone   : (217)244-7120
Illinois State Water Survey        US Mail : 2204 Griffith Dr
Technical Details
Message-ID: <BwwtHw.C9u@ux1.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uwm.edu!ux1.cso.uiuc.edu!krisk
References: <1992Oct29.214048.29162@massey.ac.nz>

Show Full Headers
Complete Article Headers
Newsgroups: comp.editors
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uwm.edu!ux1.cso.uiuc.edu!krisk
From: krisk@ux1.cso.uiuc.edu (Kris Klindworth)
Subject: Re: Delete end of line conditionally in VI?
Message-ID: <BwwtHw.C9u@ux1.cso.uiuc.edu>
Organization: University of Illinois at Urbana
References: <1992Oct29.214048.29162@massey.ac.nz>
Date: Fri, 30 Oct 1992 01:00:53 GMT
Lines: 32