From 4b9e87499d8a293dfaf12a05d3c2e35c8c225a74 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Mon, 14 Apr 2014 08:43:12 +0300 Subject: [PATCH] README: clarifications for calling multiple checkers. --- README.markdown | 24 ++++++++++++++++++++++++ plugin/syntastic.vim | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 02b675c7..cdb6f559 100644 --- a/README.markdown +++ b/README.markdown @@ -201,6 +201,30 @@ let g:syntastic_php_checkers = ['php', 'phpcs', 'phpmd'] This is telling syntastic to run the `php` checker first, and if no errors are found, run `phpcs`, and then `phpmd`. +You can also run checkers explicitly by calling `:SyntasticCheck `. + +e.g. to run `phpcs` and `phpmd`: +```vim +:SyntasticCheck phpcs phpmd +``` + +This works for any checkers available for the current filetype, even if they +aren't listed in `g:syntastic__checkers`. You can't run checkers for +"foreign" filetypes though (e.g. you can't run, say, a Python checker if the +current filetype is `php`). + + + +__Q. How can I display together the errors found by all checkers enabled for +the current file?__ + +A. Set `g:syntastic_aggregate_errors` to 1 in your vimrc: +```vim +let g:syntastic_aggregate_errors = 1 +``` + +See `:help syntastic-aggregating-errors` for more details. + __Q. How can I jump between the different errors without using the location diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 600213ea..16a27eb5 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -18,7 +18,7 @@ if has('reltime') let g:syntastic_start = reltime() endif -let g:syntastic_version = '3.4.0-26' +let g:syntastic_version = '3.4.0-27' " Sanity checks {{{1