【发布时间】:2010-07-23 14:40:12
【问题描述】:
我在 vim 中安装了Syntastic 插件。我无法让它工作。我试过:SyntasticEnable 但没有运气。 SyntasticEnable python in my vimrc 也不起作用(事实上,它甚至不解析命令,当我尝试将其添加到我的 .vimrc 时显示错误:Not an editor command: SyntasticEnable python)。
我怎么知道发生了什么?当我从 vim 调用 Syntastic 时,它没有显示错误。第一个错误(我的.vimrc 中的not and editor command)是否表明我不知道?
我的 .vimrc 中有:
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_enable_signs=1
let g:syntastic_auto_loc_list=1
我在~/.vim/syntax_checkers 中也有一个python.vim。我已经可以将 Pyflakes 用于 python 文件,它可以工作很棒,但我希望在开发应用程序时需要的其他文件/扩展中具有 Syntastic 功能。
【问题讨论】:
标签: php python vim syntax-checking syntastic