我正在尝试在我的syntastic
文件中向.vimrc
添加自定义错误符号,如下所示:
" Error symbols
let g:syntastic_error_symbol = "✗"
let g:syntastic_warning_symbol ="∙∙"
但我认为我已经设法破坏了一些东西。现在甚至没有正确加载默认符号,而是在左侧边距上获得S>
而不是>>
。
因此,我不仅不能获得自定义符号,也不能获得默认符号。发生了什么事?
完整的合成设置是:
" ============== syntastic settings ===============
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" Specific checkers for tex
let g:syntastic_tex_checkers = ['chktex', 'proselint']
" Others
let g:syntastic_aggregate_errors = 1
let g:syntastic_enable_signs = 1
" Error symbols
" let g:syntastic_error_symbol = "✗"
" let g:syntastic_warning_symbol ="∙∙"
答案 0 :(得分:1)
这有效:
" Error symbols
let g:syntastic_error_symbol = "✗"
let syntastic_style_error_symbol = "✗"
let g:syntastic_warning_symbol = "∙∙"
let syntastic_style_warning_symbol = "∙∙"