Loading ...
Sorry, an error occurred while loading the content.

Re: vim7: reported lines of bugs in Vim scripts

Expand Messages
  • A. J. Mechelynck
    ... In your previous post, you spoke about mismatched if/elseif/else/endif clauses. Try installing matchit (if you haven t already done it) then using the
    Message 1 of 4 , Feb 1, 2006
    View Source
    • 0 Attachment
      Mikolaj Machowski wrote:
      > Dnia środa, 1 lutego 2006 18:07, A. J. Mechelynck napisał:
      >> - If you wrote it, and it is short, append it to a mail.
      >
      > Here is an example, very short::
      >
      > function A()
      > let g:a =[1,
      > \2,
      > \3,
      > \4,
      > \5]
      > echo asdf
      > endfunction
      > call A()
      >
      > After sourcing of file with these lines Vim complains about unknown
      > variable asdf in second line of function A.
      >
      > Note that when expressions are in plain file, not in function report is
      > precise, for file with::
      >
      > let g:a =[1,
      > \2,
      > \3,
      > \4,
      > \5]
      > echo asdf
      >
      > Vim complains about line 6.
      >
      > Vim7 version from 'Jan 29'
      >
      > m.
      >
      >
      >
      >

      In your previous post, you spoke about mismatched if/elseif/else/endif
      clauses. Try installing matchit (if you haven't already done it) then
      using the percent key in Normal mode to check that your conditional
      statements are paired the way you want them to be.


      Best regards,
      Tony.
    Your message has been successfully submitted and would be delivered to recipients shortly.