Meino Christian Cramer wrote:
From: "A.J.Mechelynck" <[EMAIL PROTECTED]>
[...]
BTW, instead of all those "put" statements, wouldn't it be simpler to have your template as a separate file, and use ":r filename" to insert it after the cursor?


Best regards,
Tony.


Hi Tony,

 ...hrrrmmmm clear answer: yesno! :O)

 Yes: It would be the cleaner and more flexible way to implement this, no doubt!
 No : Currently it is the only thing inserting an header/template or
      such into text. It would just add another file to care of. As
      soon as I have more than a single template to handle, it will
      surely the better way to do it with seperated files.

 By the way: Is there a way to "puts" more than a single line?
Something like an HERE-doc?
 :h <permutations of 'here-doc'>

 gives me nothing...

 Keep hacking!
 mcc

See ":help :append" and ":help :insert". I didn't know about them either but I knew that "perl << EOF" (or similar) could start a here-document for any of the 5 interpreted languages. ":helpgrep <<" brought (among others) a page where ":append" and ":insert" were mentioned.


Best regards,
Tony.

Reply via email to