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 to the list if you want to loop over more
things. E.g.:
for home in split(&rtp,',') + ['']
if isdirectory(home) | break | endif
endfor
Looks like a good way to do it. Haven't used Python myself; probably
will learn more Python
using Vim's 7.0 language!
Thank you,
Chip Campbell