调整语法检查器 shellcheck 的突出显示颜色(使用 syntastic 和 pathogen)
Tweaking syntax checker shellcheck's highlight colors (with syntastic and pathogen)
对我来说,shellcheck
的突出显示颜色和消息区域(语法被标记为可疑并显示警告)都是错误的。
是否可以修改状态行 和 主要 window 突出显示 shellcheck
使用的颜色?
我调查了一下,因为我在 ~/.vimrc
中有 syntax on
。我想象我的主要 window 的突出显示颜色方案是 vim 的默认值,而不是 syntax enable
,这应该允许用户随后定义突出显示颜色方案。
再深入一点,我发现自从 syntastic
安装以来,~/.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+=%*
我无意完全重新审视 warningmsg
高配色方案。相反,我想修改一些用于语法检查的颜色 hi-rules,这样每当我在 bash 或 C 或 [=39= 中遇到语法检查器时,我的终端 window 就不会打我的脸] 或其他什么。
- 我可以在终端vim的window修改syntastic消息显示区域的高度吗?它发现它太大了。理想情况下,我希望能够直接从我的 vim 会话中修改它以适应环境。不行的话,永久性地削掉几根线就好了。
Is it possible to modify status-line and main window highlight colors used by shellcheck
?
Shellcheck 不会突出显示任何内容。它不知道也不关心 Vim 或突出显示。做突出显示的是合成的。它通过使用默认情况下链接到某些标准组的突出显示组来实现。您可以重新定义与这些组对应的颜色。参见 :help syntastic-highlighting
。
突出显示状态行是可能的,但并非微不足道。跟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'
对我来说,shellcheck
的突出显示颜色和消息区域(语法被标记为可疑并显示警告)都是错误的。
是否可以修改状态行 和 主要 window 突出显示
shellcheck
使用的颜色?我调查了一下,因为我在
~/.vimrc
中有syntax on
。我想象我的主要 window 的突出显示颜色方案是 vim 的默认值,而不是syntax enable
,这应该允许用户随后定义突出显示颜色方案。再深入一点,我发现自从
syntastic
安装以来,~/.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+=%*
我无意完全重新审视 warningmsg
高配色方案。相反,我想修改一些用于语法检查的颜色 hi-rules,这样每当我在 bash 或 C 或 [=39= 中遇到语法检查器时,我的终端 window 就不会打我的脸] 或其他什么。
- 我可以在终端vim的window修改syntastic消息显示区域的高度吗?它发现它太大了。理想情况下,我希望能够直接从我的 vim 会话中修改它以适应环境。不行的话,永久性地削掉几根线就好了。
Is it possible to modify status-line and main window highlight colors used by
shellcheck
?
Shellcheck 不会突出显示任何内容。它不知道也不关心 Vim 或突出显示。做突出显示的是合成的。它通过使用默认情况下链接到某些标准组的突出显示组来实现。您可以重新定义与这些组对应的颜色。参见 :help syntastic-highlighting
。
突出显示状态行是可能的,但并非微不足道。跟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'