Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vim 对文件禁用syntasic html/tidy checker_Vim_Syntastic - Fatal编程技术网

Vim 对文件禁用syntasic html/tidy checker

Vim 对文件禁用syntasic html/tidy checker,vim,syntastic,Vim,Syntastic,有没有办法为某个文件禁用syntastic的html/tidy插件 我有一个车把模板,其中包含一个空的标记作为占位符,我不断得到错误 清空[html/tidy] 有没有办法禁用此特定规则,或者只是禁用此特定文件的html/tidy插件?尝试将其放入.vimrc中 let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute " ,"trimming empty <", "unescaped &" , "lacks

有没有办法为某个文件禁用syntastic的html/tidy插件

我有一个车把模板,其中包含一个空的
标记作为占位符,我不断得到错误
清空[html/tidy]


有没有办法禁用此特定规则,或者只是禁用此特定文件的html/tidy插件?

尝试将其放入.vimrc中

let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute " ,"trimming empty <", "unescaped &" , "lacks \"action", "is not recognized!", "discarding unexpected"]

让g:syntastic\u html\u tidy\u ignore\u errors=[“专有属性”,“修剪空我是在为节点项目使用
.hbs
.html
模板时遇到这个问题的。将此添加到我的.vimrc中有助于:

let syntastic_mode_map = { 'passive_filetypes': ['html'] }

这里有更多选项

此外,如果您只想关闭html的警告:

let g:syntastic_html_tidy_quiet_messages = { "level" : "warnings" }
我发现这是编辑细枝模板的一个受欢迎的设置

当然,有关更多信息,请参见vim:

:h syntastic-checkers

谢谢你的规则列表!我可以把它们放在项目的配置文件中吗?