我已經在vim中安裝Syntastic插件。我無法讓它工作。我試過:SyntasticEnable
,但沒有運氣。 SyntasticEnable python
in my vimrc也不起作用(事實上,它甚至不解析命令,當我嘗試將它添加到我的.vimrc
:Not an editor command: SyntasticEnable python
時顯示錯誤)。無法讓「Syntastic」vim插件工作
我怎麼知道發生了什麼事?當我從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文件,它的工作原理是GREAT但我希望在開發應用程序時需要其他文件/擴展中的Syntastic功能。
我使用Linux,是不是應該制定出的現成?您是否嘗試在.vimrc中使用「SyntasticEnable」,並檢查是否與我一樣得到相同的錯誤? – 2010-08-25 13:43:47
如果你在沒有明確路徑的情況下運行pyflakes,即只需在終端中鍵入「pyflakes myfile」,它應該「開箱即用」。(我沒有在我的_vimrc文件中使用SyntasticEnable,因爲它會得到和你一樣的錯誤。)你使用syntastic來檢查什麼文件類型?您可能沒有所需的二進制文件,即HTML需要整潔,JavaScript需要jsl。 – James 2010-08-25 18:07:20
pyflakes正在工作,我遇到了合成問題。我要去尋找你說的二進制文件。謝謝! – 2010-08-25 20:28:09