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

possible bug in vim-6.0at

Expand Messages
  • Randy Hron
    This may be an oldie. Perhaps just needs a tweak to the sh.vim syntax file? To see it: #!/bin/bash if ((UID != 0)) then echo Only root can run $0 fi
    Message 1 of 1 , Sep 2, 2001
      This may be an oldie. Perhaps just needs a tweak to the sh.vim syntax file?

      To see it:
      #!/bin/bash
      if ((UID != 0))
      then echo "Only root can run $0"
      fi

      The "fi" appears in reverse video.

      To not see it:
      #!/bin/bash
      if (( UID != 0 ))
      then echo "Only root can run $0"
      fi

      Putting space around (( )) makes the syntax highlighting appear correct.

      bash and ksh don't need space around (( )) for integer comparisons.

      The relavant part of sh.vim seems to be around line 146.

      Anyone know a fix that could go to vim-dev@...?
    Your message has been successfully submitted and would be delivered to recipients shortly.