7
我已經安裝了Syntastic with Pathogen,並且嘗試了幾乎所有我能想到的讓Syntastic識別我的pylint檢查器。沒有可用的西洋跳棋
pylint的檢查在這裏安裝
/home/myself/.local/bin/pylint
我贊同我的路徑和
/home/myself/.local/bin
確實是在$ PATH變量。
我的.vimrc看起來像這樣
set tabstop=4
execute pathogen#infect()
syntax on
filetype plugin indent on
let g:syntastic_mode_map = { 'mode': 'passive',
\ 'active_filetypes': ['python'],
\ 'passive_filetypes': ['perl'] }
let g:syntastic_python_checkers = ['pylint', 'python']
,然而,當我運行命令
SyntasticInfo
Vim裏面,我仍然看到
Syntastic: passive mode enabled
Syntastic version: 3.4.0-79
Info for filetype:
Available checker(s):
Currently enabled checker(s):
花了好一陣子谷歌搜索對此,有沒有人知道我忘記了什麼?
編輯/回答: 如果別人需要幫助這樣的事情,做
:setfiletype python
看起來正確的事情。