0

我安装了以下 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插件可以在这里完成工作。

为什么不是这样?

4

1 回答 1

1

No, that html5.vim plugin does nothing related to html tidy at all and nothing in its README supports that idea. It only extends Vim's built-in HTML support with various HTML5 features.

Syntastic being another plugin, it must be customized independently.

于 2014-11-25T08:22:07.203 回答