Need to Add 6 lines to many files

2006-05-25 Thread Mike Blonder
Hi. I cannot find a good example in the documentation that would help me use VIM to accomplish what I need to do: I need to add 6 lines to each of thousands of files. The location for the lines to be added is the same and definable in a command. Anybody have any ideas as to a straightforward wa

Re: Need to Add 6 lines to many files

2006-05-25 Thread Mike
On Thu, 25 May 2006, Mike Blonder might have said: > Hi. > > I cannot find a good example in the documentation that would help me use > VIM to accomplish what I need to do: > > I need to add 6 lines to each of thousands of files. The location for > the lines to be added is the same and definabl

Re: Need to Add 6 lines to many files

2006-05-25 Thread James Vega
On Thu, May 25, 2006 at 01:59:31PM -0400, Mike Blonder wrote: > Hi. > > I cannot find a good example in the documentation that would help me use > VIM to accomplish what I need to do: > > I need to add 6 lines to each of thousands of files. The location for > the lines to be added is the same an

Re: Need to Add 6 lines to many files

2006-05-25 Thread Mike Blonder
Thanks for the tips. the put command does NOT seem to work. The problem is that the line number will change, from file to file, while the pattern will not. When I try argdo <\/body>P a [to put the contents of register a before the pattern ] I get a trailing characters error message. I get the

Re: Need to Add 6 lines to many files

2006-05-25 Thread James Vega
On Thu, May 25, 2006 at 02:46:32PM -0400, Mike Blonder wrote: > On Thu, 2006-05-25 at 14:05 -0400, James Vega wrote: > > On Thu, May 25, 2006 at 01:59:31PM -0400, Mike Blonder wrote: > > > Hi. > > > > > > I cannot find a good example in the documentation that would help me use > > > VIM to accompl

Re: Need to Add 6 lines to many files

2006-05-26 Thread Mikolaj Machowski
Dnia czwartek, 25 maja 2006 20:46, Mike Blonder napisaƂ: > Thanks for the tips. > > the put command does NOT seem to work. The problem is that the line > number will change, from file to file, while the pattern will not. When > I try :argdo $put a m.