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
- On Tue, May 01, 2001 at 09:20:09AM -0400, Charles E. Campbell wrote:
> Since you're on the [vim] mailing list, does that mean thatWorks fine! I'm using VIM 5.7.28
> you're using 5.7? If so, try putting the following line
> in your <.vimrc>:
> let b:is_bash=1
Thanks a lot.
Jeroen Valcke jeroen@...
ICQ# 30116911 Home page: http://www.valcke.com/jeroen
Phone +32(0)56 32 91 37 Mobile +32(0)486 88 21 26