RE: Reading a file from a script?

2008-08-21 Fir de Conversatie Robert Webb
Ag. D. Hatzimanikas: I could also use readfile(), which would probably suffice, but is this more or less efficient than loading a file into a vim buffer. I will still need to read the whole file either way since I don't know how far through the file I will need to look. Now if

Re: Reading a file from a script?

2008-08-21 Fir de Conversatie Ingo Karkat
On 21-Aug-08 16:15, Robert Webb wrote: Ag. D. Hatzimanikas: I could also use readfile(), which would probably suffice, but is this more or less efficient than loading a file into a vim buffer. I will still need to read the whole file either way since I don't know how far through the file

Reading a file from a script?

2008-08-20 Fir de Conversatie Robert Webb
Hi, In a vim script, what's the best way to load a file (to search for some info), then get rid of it again without any side-effects. Eg, it shouldn't change the alternative buffer, it should no longer be loaded in a hidden buffer, and it should work even when there's not enough room to split

Re: Reading a file from a script?

2008-08-20 Fir de Conversatie Ben Schmidt
Robert Webb wrote: Hi, In a vim script, what's the best way to load a file (to search for some info), then get rid of it again without any side-effects. Eg, it shouldn't change the alternative buffer, it should no longer be loaded in a hidden buffer, and it should work even when there's

Re: Reading a file from a script?

2008-08-20 Fir de Conversatie Ag. D. Hatzimanikas
On Thu, Aug 21, at 12:26 Robert Webb wrote: I could also use readfile(), which would probably suffice, but is this more or less efficient than loading a file into a vim buffer. I will still need to read the whole file either way since I don't know how far through the file I will need to