On Aug 20, 1:33 pm, Bee <[email protected]> wrote: > 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 >
A workaround that immediately presents itself to me, but seems a terrible way to accomplish it: if v:version >= 700 source somefilewithaforloop.vim endif Potentially, if you can construct the script in such a way that this actually works for you, you can put the for loop at the end of the file, and :finish whenever v:version < 700 before reaching the :for loop. Or just use :while as you suggest. -- 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
