Re: How to insert text via script/function call ?

2006-08-22 Thread Charles E Campbell Jr
Meino Christian Cramer wrote: No, sorry...I was simply searching for a function call like printf( This is my text! ) Hi Tony, this works so far...with an unwanted sideeffekt: Instead of This is my text! in my buffer I get This is my text!Esc

Re: How to insert text via script/function call ?

2006-08-22 Thread Tim Chase
put ='This is my text!' Yup! it works fine...next is to solve the problem to put a combination of fixed text and the contents of a variable, which contains for example the date-string onmto one line. That's just an evaluated expression there, so you can use :put ='Today is: '.strftime('%c')

Re: How to insert text via script/function call ?

2006-08-22 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: Charles E Campbell Jr [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call ? Date: Tue, 22 Aug 2006 13:33:26 -0400 Yup! it works fine...next is to solve the problem to put a combination of fixed text and the contents of a variable, which

Re: How to insert text via script/function call ?

2006-08-22 Thread Meino Christian Cramer
From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call ? Date: Tue, 22 Aug 2006 19:43:59 +0200 OH YEAH! Thanks to you all for all the superfast responses to my variable-question! This was really a HowTo-explosion, hahahahaha !!! :):) :O) Keep

Re: How to insert text via script/function call ?

2006-08-22 Thread Gary Johnson
On 2006-08-22, Meino Christian Cramer [EMAIL PROTECTED] wrote: Yup! it works fine...next is to solve the problem to put a combination of fixed text and the contents of a variable, which contains for example the date-string onmto one line. let date = strftime(%x) put ='Today''s date is

Re: How to insert text via script/function call ?

2006-08-19 Thread Meino Christian Cramer
From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call ? Date: Sat, 19 Aug 2006 07:47:11 +0200 Meino Christian Cramer wrote: From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 18

Re: How to insert text via script/function call ?

2006-08-19 Thread Gary Johnson
On 2006-08-18, Meino Christian Cramer [EMAIL PROTECTED] wrote: I was simply for an aquivalent to printf( This is my text! ) but instead of C and printing via stdout it should be vim script and the text should go right to the current cursor position. That's all! put='This

Re: How to insert text via script/function call ?

2006-08-18 Thread Marius Roets
On 8/18/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: Hi, I often need to place a header above a function defintion (C-source) fpr documentational purposes. What I treid is to write a short function for vim, which dioes insert the text skeleton -- but I did not find any already

Re: How to insert text via script/function call ?

2006-08-18 Thread Benji Fisher
On Fri, Aug 18, 2006 at 04:44:26AM +0200, Meino Christian Cramer wrote: Hi, I often need to place a header above a function defintion (C-source) fpr documentational purposes. What I treid is to write a short function for vim, which dioes insert the text skeleton -- but I did not find

Re: How to insert text via script/function call ?

2006-08-18 Thread Meino Christian Cramer
From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 07:29:05 +0200 Meino Christian Cramer wrote: Hi, I often need to place a header above a function defintion (C-source) fpr documentational purposes. What I

Re: How to insert text via script/function call ?

2006-08-18 Thread Meino Christian Cramer
From: Marius Roets [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 09:52:42 +0200 On 8/18/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: Hi, I often need to place a header above a function defintion (C-source) fpr documentational

Re: How to insert text via script/function call ?

2006-08-18 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 07:29:05 +0200 Meino Christian Cramer wrote: Hi, I often need to place a header above a function defintion (C-source) fpr documentational

Re: How to insert text via script/function call ?

2006-08-18 Thread Meino Christian Cramer
From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 18:05:13 +0200 Meino Christian Cramer wrote: From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 07

Re: How to insert text via script/function call ?

2006-08-18 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call ? Date: Fri, 18 Aug 2006 18:05:13 +0200 Meino Christian Cramer wrote: From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: How to insert text via script/function call

How to insert text via script/function call ?

2006-08-17 Thread Meino Christian Cramer
Hi, I often need to place a header above a function defintion (C-source) fpr documentational purposes. What I treid is to write a short function for vim, which dioes insert the text skeleton -- but I did not find any already existing function in the API which does this for me. With :i I got

Re: How to insert text via script/function call ?

2006-08-17 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, I often need to place a header above a function defintion (C-source) fpr documentational purposes. What I treid is to write a short function for vim, which dioes insert the text skeleton -- but I did not find any already existing function in the API which