从 vim 到 python 的合成词 window
Obstrusive window on syntastic from vim for python
Syntastic 在每个“:w”引用 Python3 class 定义时引发错误。我还尝试使用
禁用消息 window 但没有成功
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
引发错误的class定义类似于
class SomeClass(metaclass=PoolMeta):
pass
问题是我如何禁用 window 以防止发出错误警报?
附上图片
您可能想将 syntastic_auto_loc_list 设置为 0 或 2。
syntastic_auto_loc_list
Type: integer
Default: 2
Use this option to tell syntastic to automatically open and/or close the
location-list (see syntastic-error-window).
When set to 0 the error window will be neither opened nor closed
automatically.
let g:syntastic_auto_loc_list = 0
When set to 1 the error window will be automatically opened when errors are detected, and closed when none are detected.
let g:syntastic_auto_loc_list = 1
When set to 2 the error window will be automatically closed when no errors are detected, but not opened automatically.
let g:syntastic_auto_loc_list = 2
When set to 3 the error window will be automatically opened when errors are detected, but not closed automatically.
let g:syntastic_auto_loc_list = 3
Syntastic 在每个“:w”引用 Python3 class 定义时引发错误。我还尝试使用
禁用消息 window 但没有成功let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
引发错误的class定义类似于
class SomeClass(metaclass=PoolMeta):
pass
问题是我如何禁用 window 以防止发出错误警报?
附上图片
您可能想将 syntastic_auto_loc_list 设置为 0 或 2。
syntastic_auto_loc_list
Type: integer
Default: 2
Use this option to tell syntastic to automatically open and/or close the location-list (see syntastic-error-window).
When set to 0 the error window will be neither opened nor closed automatically.
let g:syntastic_auto_loc_list = 0
When set to 1 the error window will be automatically opened when errors are detected, and closed when none are detected.
let g:syntastic_auto_loc_list = 1
When set to 2 the error window will be automatically closed when no errors are detected, but not opened automatically.
let g:syntastic_auto_loc_list = 2
When set to 3 the error window will be automatically opened when errors are detected, but not closed automatically.
let g:syntastic_auto_loc_list = 3