Skip to content

Latest commit

 

History

61 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webval.vim

HTML and CSS validation plugin for Vim using the W3C Validator API.

How to install

Using Vim Plug:

Add the following to your .vimrc file: Plug 'arunsahadeo/webval'

Using Vundle:

Add the following to your .vimrc file: Plugin 'arunsahadeo/webval'

Installing manually:

Place the plugin file somewhere under your ~/.vim folder and add the following to your .vimrc file:

set rtp+=~/.vim/ runtime /path/to/webval.vim

Note: you will also need jq installed and available on your $PATH variable.

Commands:

:ValiHTML - Validates any HTML contained in the file currently open in the buffer if it corresponds to one of the whitelisted filetypes
:ValiCSS - Validates any CSS contained in the file currently open in the buffer if it has a .css extension
:PurgeFiles - Deletes the JSON file generated by the ValiCSS command, or the JSON / HTML files generated by the ValiHTML command (a HTML file will be generated if you use :ValiHTML on a whitelisted PHP file)

About

HTML and CSS validation for Vim

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages