Re: vim function for printing text in to a buffer.

2014-08-03 Thread John Little
On Saturday, August 2, 2014 4:48:42 AM UTC-5, sinbad wrote: ... a function with a double loop... On Sunday, August 3, 2014 5:44:10 PM UTC+12, Ben Fritz wrote: > > What doesn't work about it? You only showed output for ma=1. ... sinbad showed that because that's all he got. mb is set outside the

Re: vim function for printing text in to a buffer.

2014-08-02 Thread Ben Fritz
On Saturday, August 2, 2014 4:48:42 AM UTC-5, sinbad wrote: > hi, > > i'm trying to write a vim function to generate the > following output. first of all why is it so difficult > to ptint text into the buffer, i thought vim will > have a simple printf() command which can dump the text > into the b

Re: vim function for printing text in to a buffer.

2014-08-02 Thread Павлов Николай Александрович
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On August 2, 2014 4:51:41 PM GMT+03:00, sinbad wrote: >Thanks for the reply, that did the trick, >i was expanding on the program, now i'm >hitting the following issue, when i run >the following program, i'm getting these >errors. and also for the 'f

Re: vim function for printing text in to a buffer.

2014-08-02 Thread sinbad
Thanks for the reply, that did the trick, i was expanding on the program, now i'm hitting the following issue, when i run the following program, i'm getting these errors. and also for the 'fmt' whats the difference between ' ' and " " ?, for the first printf at 4, it works only if i use ' ' E116:

RE: vim function for printing text in to a buffer.

2014-08-02 Thread John Beckett
sinbad wrote: > i'm trying to write a vim function to generate the following > output. first of all why is it so difficult to ptint text into > the buffer, i thought vim will have a simple printf() command > which can dump the text into the buffer, but after googling a > lot i found that append() i

vim function for printing text in to a buffer.

2014-08-02 Thread sinbad
hi, i'm trying to write a vim function to generate the following output. first of all why is it so difficult to ptint text into the buffer, i thought vim will have a simple printf() command which can dump the text into the buffer, but after googling a lot i found that append() is the function i sh