-1

To me, shellcheck's highlight colors and message zone (where syntax is flagged as dubious and warnings are displayed) are both wrong.

  • Is it possible to modify status-line and main window highlight colors used by shellcheck?

    I looked into that and since I have syntax on in ~/.vimrc. I imagine that my main window's highlight color scheme is vim's default, as opposed to having syntax enable, the which supposedly allows subsequent definition of a highlight color scheme by the user.

    Digging a bit more, I found that since syntastic's install, I have the following for the status line in ~/.vimrc:

    " General status line option unchanged (vim window and multiple buffer window) - already there before Syntastic
    
    set statusline=%<\ %n\ %f\ %m%r%h\ %y%h%=\ Line:\ \%l/\%L\ (\%p%%)\ Column:\ \%c\
    
    
    " Syntastic options (new)
    
    " Set highlight group 'warningmsg' <= defined where?
    set statusline+=%#warningmsg#
    " No clue what function SyntasticStatuslineFlag() to evaluate is or does...
    set statusline+=%{SyntasticStatuslineFlag()}
    " Restore normal highlight mode or scheme
    set statusline+=%*
    

I am not intent on completely revisiting the warningmsg hi-color scheme. Instead I want to modify a few color hi-rules for syntax checking, so my terminal window does not punch me in the face, whenever I trip a syntax checker in bash or C or Python or whatever.

  • Can I modify the height of the syntastic's message display area in the terminal's vim's window? It find it way too big. Ideally I'd like to be able to modify it directly from my vim session to adapt it to circumstances. If not possible, just permanently shaving a couple of lines off it would be good.
Will
  • 24,082
  • 14
  • 97
  • 108
Cbhihe
  • 511
  • 9
  • 24
  • You earned a downvote from me for posting yet another question where everything is explained in the manual. On the bright side, you can't get to negative numbers this way. – lcd047 Aug 16 '15 at 17:45
  • @lcd047: Good that you explain yr downvote. If I did not look at the manual, it is only because I did not know where to look, nor could I imagine such a thing as `:help syntastic-highlighting` and similar. I am learning... and the learning curve for everything having to do with vim's scripting environment, plugins, etc. looks steep from where I stand. – Cbhihe Aug 16 '15 at 20:12
  • Then perhaps you should make sure you understand the basics first? – lcd047 Aug 17 '15 at 04:10

1 Answers1

2

Is it possible to modify status-line and main window highlight colors used by shellcheck?

Shellcheck doesn't highlight anything. It doesn't know, nor care, about either Vim, or highlighting. The one doing the highlighting is syntastic. It does that by using highlighting groups that are linked to some standard ones by default. It's up to you to redefine the colors corresponding to these groups. See :help syntastic-highlighting.

Highlighting the status line is possible, but not trivial. It has nothing to do with syntastic.

" No clue what function SyntasticStatuslineFlag() to evaluate is or does...

:help syntastic-statusline-flag, :help 'syntastic_stl_format'

Can I modify the height of the syntastic's message display area in the terminal's vim's window ?

:help 'syntastic_loc_list_height'

lcd047
  • 5,731
  • 2
  • 28
  • 38
  • +1 for the pointers to the correct vim's help sections. I will systematically scrutinize that from now on. – Cbhihe Aug 16 '15 at 20:14