我安装了以下vim插件:
Plugin 'othree/html5.vim'Plugin 'scrooloose/syntastic'但是,具有以下html块:
<form novalidate>
</form>显示:
<form> propritary attribute "novalidate"为了防止错误,我必须明确地说(在我的~/.vimrc中):
let g:syntastic_html_tidy_ignore_errors=["<form> proprietary attribute \"novalidate\""]尽管如此,我仍然认为othree/html5.vim插件在这里是起作用的。
为甚麽不是呢?
发布于 2014-11-25 08:22:07
不,那个html5.vim插件根本不做任何与html tidy相关的事情,它的README中也没有任何东西支持这个想法。它只使用各种HTML5特性扩展了Vim内置的HTML支持。
语法是另一个插件,它必须独立定制。
https://stackoverflow.com/questions/27121262
复制相似问题