Additional Syntastic syntax checkers and features (for Vim)
VimL Python Shell Other
Latest commit 584a767 Dec 5, 2016 @myint Move script to makefile

README.rst

syntastic-extras

Build status

Additional syntax checkers for the Vim plugin Syntastic.

Checkers

  • C:
" Like Syntastic's normal checker, but only checks files if there is a
" '.syntastic_c_config' file existing in the directory or an ancestor
" directory. It ignores warnings in included files by using '-isystem'
" instead of '-I'.
let g:syntastic_c_checkers = ['check']
  • C++:
" Like Syntastic's normal checker, but only checks files if there is a
" '.syntastic_cpp_config' file existing in the directory or an ancestor
" directory. It ignores warnings in included files by using '-isystem'
" instead of '-I'.
let g:syntastic_cpp_checkers = ['check']
  • cfg/dosini:
let g:syntastic_cfg_checkers = ['cfg']
let g:syntastic_dosini_checkers = ['dosini']
  • GNU Make:
let g:syntastic_make_checkers = ['gnumake']
  • JSON
let g:syntastic_javascript_checkers = ['json_tool']
  • Language check in gitcommit/svn (commit prompts):
let g:syntastic_gitcommit_checkers = ['language_check']
let g:syntastic_svn_checkers = ['language_check']
  • Python:
" Like Syntastic's pyflakes checker, but treats messages about unused
" variables/imports as warnings rather than errors.
let g:syntastic_python_checkers = ['pyflakes_with_warnings']
  • YAML:
let g:syntastic_yaml_checkers = ['pyyaml']

Hooks

  • Block ZZ if there are syntax errors:
nnoremap ZZ :call syntastic_extras#quit_hook()<cr>