Re: [vim] shell syntax highlighting
- Jeroen Valcke wrote:
> On Mon, Apr 30, 2001 at 04:32:36PM -0400, Charles E. Campbell wrote:I think that you want
>> 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.
: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