> I have a .vimrc that is used for vim6.2 thru vim7.3 on Mac Terminal
>
> This works to eliminate errror messages for the older vim6.2:
>
> if version>= 700 "?vim6.2
> ...
> endif
>
> EXCEPT with a new script which has a FOR ... ENDFOR
>
> The ENDFOR seems to confused the IF.
>
> Is there a workaround?
> I suppose I could rewrite the script using WHILE
>
> -Bill
Inside a function, Vim6 takes :endfor for :endfunction :
" This works with Vim 6.4, but not with Vim 7.1:
func! Foo()
echo "endfor is endfunction"
endfor
call Foo()
" (from vim_dev, 07.10.2008, Re: hilinks and potentially other script
" bugs)
Just checked with Vim6.4: outside a function I don't get an error:
if v:version >= 700
for str in ['abc', 'def']
echo str
endfor
endif
--
Andy
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment