forked from tomtom/checksyntax_vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Check a file's syntax when saving a file (php, ruby, tex ...) with vim
janhh/checksyntax_vim
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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). The following modes are pre-defined (and maybe some more): c, cpp :: Check syntax via splint html :: Check syntax via tidy javascript :: Check syntax via jsl or gjslint java :: Check syntax via jlint or javaCheckstyle lua :: Parse file (luac -p) php :: Check syntax (php -l) phpp :: Parse a file (php -f) (alternative php checker) python :: Check file with pyflakes pylint :: Use the pylint compiler plugin (alternative python checker) ruby :: Check syntax (ruby -c; no auto-checks) tex, latex :: Parse file (chktex -q -v0; no auto-checks) xml, docbk :: Check syntax via xmllint See |g:checksyntax| 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). In opposition to php_console, it is not a php ftplugin but a general solution for checking the syntax when saving a file (using the appropriate interpreter, lint or whatsoever). ----------------------------------------------------------------------- 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.
About
Check a file's syntax when saving a file (php, ruby, tex ...) with vim
Resources
Stars
Watchers
Forks
Packages 0
No packages published