https://github.com/cj/vim
My Vim :D
https://github.com/cj/vim
Last synced: 3 months ago
JSON representation
My Vim :D
- Host: GitHub
- URL: https://github.com/cj/vim
- Owner: cj
- Created: 2010-08-15T21:28:00.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2011-05-06T04:11:19.000Z (about 15 years ago)
- Last Synced: 2026-02-19T22:38:45.563Z (5 months ago)
- Language: VimL
- Homepage:
- Size: 1.41 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
By default, |:CheckSyntax| is mapped to . 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)
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.