关于 syntastic: 怎么取消掉一些文件的语法.比如我想取消掉html
vim吧
全部回复
仅看楼主
level 1
xiobo_bo 楼主
我想取消掉 syntastic 对hmtl文件的语法检测 .怎么做啊? 在网上找了半天没找到.快烦死了.以前设置了一次 现在找不到了.求大神帮忙 !
2017年01月17日 14点01分 1
level 7
看文档 目前发现可以过滤html文件 (不过正则要自己写下)还不知道怎么针对文件类型
let g:syntastic_ignore_files = ['\m^/usr/include/', '\m\c\.h$']
2017年01月17日 14点01分 2
感谢 自己解决了 直接把html的checker 全部删除了..
2017年01月18日 14点01分
@xiobo_bo 怎么操作?
2018年09月28日 06点09分
level 7
'syntastic_mode_map'
Type: dictionary
Default: { "mode": "active",
"active_filetypes": [],
"passive_filetypes": [] }
Use this option to fine tune when automatic syntax checking is done (or not
done).
The option should be set to something like:
let g:syntastic_mode_map = {
\ "mode": "active",
\ "active_filetypes": ["ruby", "php"],
\ "passive_filetypes": ["puppet"] }
将html设置为被动检查?也许可以去掉报错~ 不过需要尝试下
2017年01月17日 14点01分 3
1