加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

vim – 没有Syntastic的可用跳棋

发布时间:2020-12-16 01:18:33 所属栏目:安全 来源:网络整理
导读:我已经安装了Syntastic with Pathogen,并尝试了几乎所有我能想到的让Syntastic识别我的pylint检查器. Pylint检查器安装在这里 /home/myself/.local/bin/pylint 我回应了我的道路 /home/myself/.local/bin 确实在$PATH变量中. 我的.vimrc看起来像这样 set tab
我已经安装了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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读