On Oct 1, 2009, at 2:50 AM, Hari Krishna Dara wrote: > On Wed, Sep 30, 2009 at 10:31 PM, Christian Brabandt > <[email protected]> wrote: >> Hi Bee! >> On Mi, 30 Sep 2009, Bee wrote: >>> How to use something like repeat() to create a string like: >>> >>> '" '.(((start at 3 increment by 1) mod 10) for count of 62) >>> >>> resulting in: >>> >>> " 34567890123456789012345678901234567890123456789012345678901234 > > ... > > If you are comfortable with pythonic way of programming, you can get > the same with: > > :echo join(map(range(3,64), 'v:val % 10'), '') > 34567890123456789012345678901234567890123456789012345678901234
Thank you, that is great, and the style I was looking for. vim is deep! -- Bill Santa Cruz, California --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
