Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!R.Singh From: news@massey.ac.nz (USENET News System) Newsgroups: comp.editors Subject: VI question Message-ID: <1991Apr16.234809.23553@massey.ac.nz> Date: 16 Apr 91 23:48:09 GMT Reply-To: R.Singh@massey.ac.nz (R. Singh) Organization: Massey University Computer Centre Lines: 27 Get VI to recognize a pattern of two 4 lettered uppercase words and insert a comma in them for eg XHLP XCEL APPL XCEL STAK WILD STAK WILD STAK WILD and make them XHLP,XCEL APPL,XCEL STAK,WILD STAK,WILD STAK,WILD In the above case it is easy, but I want a command which will do it for a pattern like this anywhere in the file. Thanx Raminder PS Is there a good book for VI. The man page is quite useless.