我已经安装了Syntastic和病原体,并尝试了几乎所有我能想到的让Syntastic识别我的pylint检查器。
Pylint checker安装在此处
/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似乎把事情做对了。
发布于 2017-05-18 04:40:39
在filetype插件上也有类似的问题,奇怪的是,这很有帮助:
filetype off " <<< this line
filetype plugin indent on
syntax onhttps://stackoverflow.com/questions/24146738
复制相似问题