Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!comp.vuw.ac.nz!cc-server4.massey.ac.nz!R.Singh From: news@massey.ac.nz (USENET News System) Newsgroups: comp.editors Subject: Simple VI question? Message-ID: <1991May9.024022.24367@massey.ac.nz> Date: 9 May 91 02:40:22 GMT Reply-To: R.Singh@massey.ac.nz (R. Singh) Organization: Massey University Computer Centre Lines: 11 How does one do this in VI. Mark 2 lines, and then from ":'a, 'z" append a >> at the beginning of every line. For example for whole file, a command of ":g/^./s//la/g" would substitute the first 2 characters of every line with la. What I want to do is insert >> before every line in the region marked with "ma" and "mz". Thanx Raminder $ingh