Re: :for var in list

2006-04-25 Thread James Vega
On Tue, Apr 25, 2006 at 02:21:07PM -0400, Charles E Campbell Jr wrote: Hello! I know this is a late date, but I think it would be helpful if for var in list ... endfor would complete with var= . For example where this might come in handy: for home in split(rtp

Re: :for var in list

2006-04-25 Thread Charles E Campbell Jr
James Vega wrote: On Tue, Apr 25, 2006 at 02:21:07PM -0400, Charles E Campbell Jr wrote: I know this is a late date, but I think it would be helpful if for var in list ... endfor would complete with var= . For example where this might come in handy: for home in split(rtp

Re: :for var in list

2006-04-25 Thread Bram Moolenaar
Charles Campbell wrote: I know this is a late date, but I think it would be helpful if for var in list ... endfor would complete with var= . For example where this might come in handy: for home in split(rtp,',') if isdirectory(home) | break | endif endfor So

Re: :for var in list

2006-04-25 Thread Charles E Campbell Jr
Bram Moolenaar wrote: Charles Campbell wrote: I know this is a late date, but I think it would be helpful if for var in list ... endfor would complete with var= ... This for loop is like it is in Python, and it has proven to be very useful. It's easy to add something

Re: :for var in list

2006-04-25 Thread Mike Steed
On Tue, Apr 25, 2006 at 10:32:35PM +0200, Bram Moolenaar wrote: This for loop is like it is in Python, and it has proven to be very useful. It's easy to add something to the list if you want to loop over more things. E.g.: for home in split(rtp,',') + [''] if