微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

vim – 没有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):

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

编辑/回答:
如果其他人需要这样的事情的帮助,做

:setfiletype python

似乎把事情做对了.

有类似的文件类型插件问题,奇怪但这有助于:
filetype off " <<< this line
filetype plugin indent on
Syntax on

原文地址:https://www.jb51.cc/vim/384279.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐