On Ma,09.iun.09, 15:23:52, Richard Hector wrote: > > You have to put a range in there or it'll only hit the current line: > > > > :0,$s/^/> / > > True. I usually use visual mode - shift-v and cursors (or G to jump to > the bottom, in this case) to select the lines, then I only type what I > did above, and it sticks in the range automatically.
If you need to go over the whole file just use % :%s/^/> / If the string can occur more than once in the same line (not '^' of course) you must append 'g' to replace all of them: :%s/oldstring/newstring/g Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein)
signature.asc
Description: Digital signature