You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Buddy Sandidge bae330908c Merge commit '31d14ce69586623d2f4c3d256f919a3760c805f3' as 'vim/bundle/checksyntax' 11 years ago
..
autoload Merge commit '31d14ce69586623d2f4c3d256f919a3760c805f3' as 'vim/bundle/checksyntax' 11 years ago
doc Merge commit '31d14ce69586623d2f4c3d256f919a3760c805f3' as 'vim/bundle/checksyntax' 11 years ago
etc Merge commit '31d14ce69586623d2f4c3d256f919a3760c805f3' as 'vim/bundle/checksyntax' 11 years ago
plugin Merge commit '31d14ce69586623d2f4c3d256f919a3760c805f3' as 'vim/bundle/checksyntax' 11 years ago
.gitignore Merge commit '31d14ce69586623d2f4c3d256f919a3760c805f3' as 'vim/bundle/checksyntax' 11 years ago
CHANGES.TXT Merge commit '31d14ce69586623d2f4c3d256f919a3760c805f3' as 'vim/bundle/checksyntax' 11 years ago
README Merge commit '31d14ce69586623d2f4c3d256f919a3760c805f3' as 'vim/bundle/checksyntax' 11 years ago
addon-info.json Merge commit '31d14ce69586623d2f4c3d256f919a3760c805f3' as 'vim/bundle/checksyntax' 11 years ago

README

The checksyntax plugin runs an external syntax checker for the current buffer 
whenever the buffer is saved (by calling the |:CheckSyntax| command). Syntax 
errors are managed as location or quickfix lists. If any syntax error occurs, 
the |location-list| is opened (users can redefine |CheckSyntaxFail()| to change 
this behaviour). You can use any |location-list| related command to navigate 
the list of syntax errors.

If vimscript #2584 is installed, lines containing syntax errors will be marked 
with signs.

By default, |:CheckSyntax| is mapped to <F5> (if not mapped already), 
and automatically executed when saving the buffer. The |:CheckSyntax| 
command takes one optional argument: the mode (default: &filetype).
<C-F5> will run all syntax checkers for a given filetype if multiple 
alternatives are defined and installed on your computer.

As the plugin doesn't provide syntax checks by its own. This is done by 
an external syntax checker that has to be installed on your computer.

For the following filetypes, syntax checkers are pre-defined:

    c, cpp :: Check syntax via splint
    html :: Check syntax via tidy
    javascript :: Check syntax via jslint, jshint, jsl, or gjslint
    java :: Check syntax via jlint or javaCheckstyle
    lua :: Parse file (luac -p)
    php  :: Check syntax (php -l)
    python :: Check file with pyflakes or pylint
    r :: Check syntax & style with lint::lint or svTools::lint
    ruby :: Check syntax (ruby -c)
    tex, latex :: Parse file (chktex -q -v0)
    xml, docbk :: Check syntax via xmllint

See the autoload/checksyntax/defs/ directory for a complete list of 
supported syntax checkers. See |g:checksyntax| also for how to define 
your own syntax checkers.

This plugin was originally based on Klaus Horsten's php_console 
(vimscript #779) and it is the successor of php_check_syntax.vim 
(vimscript #1272).


-----------------------------------------------------------------------

Status:  Works for me (there may be some minor quirks)
Install: See http://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT
See http://github.com/tomtom for related plugins.