没有Syntastic的可用跳棋

时间:2014-06-10 16:54:44

标签: vim path pylint syntastic

我已经安装了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):

花了很多时间搜索谷歌这个,有没有人知道我忘记了什么?

EDIT /解答: 万一其他人需要这样的帮助,做

:setfiletype python

似乎把事情搞定了。

1 个答案:

答案 0 :(得分:0)

与filetype插件有类似的问题,奇怪但这有助于:

filetype off " <<< this line
filetype plugin indent on
syntax on