Zac*_*ack 9 vim path pylint syntastic
我已经安装了Syntastic with Pathogen,并尝试了几乎所有我能想到的让Syntastic识别我的pylint检查器.
Pylint检查器安装在这里
/home/myself/.local/bin/pylint
Run Code Online (Sandbox Code Playgroud)
我回应了我的道路
/home/myself/.local/bin
Run Code Online (Sandbox Code Playgroud)
确实在$ 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']
Run Code Online (Sandbox Code Playgroud)
但是当我运行命令时
SyntasticInfo
Run Code Online (Sandbox Code Playgroud)
在vim内部,我仍然看到
Syntastic: passive mode enabled
Syntastic version: 3.4.0-79
Info for filetype:
Available checker(s):
Currently enabled checker(s):
Run Code Online (Sandbox Code Playgroud)
花了很多时间搜索谷歌这个,有没有人知道我忘记了什么?
EDIT/ANSWER:如果其他人需要这样的帮助,那就行了
:setfiletype python
Run Code Online (Sandbox Code Playgroud)
似乎把事情做对了.
文件类型插件也有类似的问题,奇怪的是,但这有帮助:
filetype off " <<< this line
filetype plugin indent on
syntax on
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2311 次 |
| 最近记录: |