* Bram Moolenaar on Saturday, May 06, 2006 at 23:48:03 +0200: > Christian Ebert wrote: >> I wanted to use the exists clause to fork a script according to >> the current vim version, and this works in other cases. >> >> The problem is the for-loop, it doesn't choke on something like >> add() which is also new in vim7. >> >> Am I doing something wrong, or is this a bug? > > I can't change 6.x versions to fix this. The problem is that the > "endfor" is seen as "endfunction". Only the "endf" is checked for.
Ok, I see. > You can work around it by putting the "endfor" after another command: > > call add(l:test, word) | endfor Yes, that helps definitely. Thanks a lot. c -- _B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>
