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

Re: [vim] shell syntax highlighting

Expand Messages
  • Benji Fisher
    ... I think that you want ... in your vimrc file. The variables b:is_bash and b:is_kornshell should be local to the buffer, not set in the vimrc file. (And
    Message 1 of 9 , Apr 30, 2001
    • 0 Attachment
      Jeroen Valcke wrote:

      > On Mon, Apr 30, 2001 at 04:32:36PM -0400, Charles E. Campbell wrote:
      >
      >> bash, even if it is named sh. Try putting "let is_kornshell=1" or
      >> "let is_bash=1" in your <.vimrc>; that will tell <sh.vim> to
      >> highlight it with the ksh/bash extensions (which include $((...)) ).
      >
      > Indeed, in the sh.vim file there's a reference too $((...)) on line 115.
      > It should be executed when is_bash is set. However I have the line "let
      > is_bash=1" in my .vimrc and still it colors the $(...) red?
      > How is this possible?
      > Thanks for helping me out so far.

      I think that you want

      :let bash_is_sh = 1

      in your vimrc file. The variables b:is_bash and b:is_kornshell should be
      local to the buffer, not set in the vimrc file. (And you probably do not
      need them.)

      :help sh.vim

      HTH
      --Benji Fisher
    Your message has been successfully submitted and would be delivered to recipients shortly.