vim-htmlvalidator


Ⅰ. 插件描述

This is a Vim HTML compiler for validating against http://validator.nu.

Ⅱ. 基本信息

创建日期:  2010-12-03
使用用户:  4
Github星:  15
插件作者:  Sorin Ionescu

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'sorin-ionescu/vim-htmlvalidator'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'sorin-ionescu/vim-htmlvalidator'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'sorin-ionescu/vim-htmlvalidator'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/sorin-ionescu/vim-htmlvalidator

Ⅳ. 文档说明

This is a Vim compiler plugin for validating HTML via validator.nu.

Preview

Screenshot:

vim-htmlvalidator

Requirements

  • Vim
  • curl
  • sed

Installation

Place html.vim into ~/.vim/compiler or clone this repository into the Pathogen ~/.vim/bundles directory.

If you wish to always associate HTML with this compiler, add the following line to the ~/.vimrc file.

au FileType html compiler html

If you wish to automatically open the QuickFix window, add the following line to the ~/.vimrc file.

au QuickFixCmdPost make cwindow

Usage

Type :make. If there are errors, then type :cwindow or :clist if you have not set up the QuickFix window to open automatically.

License

GPLv2+

添加新评论