From 347aeab113ea37edbdfdd80210a0adec130efb4d Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Wed, 24 Jun 2015 17:08:12 -0700 Subject: [PATCH] Squashed 'vim/bundle/syntastic/' changes from 106c772b0..56e19eb81 56e19eb81 Sphinx checker: update maintainer's address. 131ec84e6 New checker for reStructuredText: sphinx. e46c64701 Bug fix: more findfile() fun. a728268d7 Bug fix: finding files in parent directories. 98e79d85f Nix checker: cleanup. c840655d1 Add support for .nix files b609b3bdd Checker ghc-mod: attempt to fix filename encodings. 84b4da7cf Manual: add a note about :mksession. b8682c302 Merge remote-tracking branch 'origin/pr/1447' 3dda9b833 Apps should be used for include_lib too cb9424c9e README: formatting. 7055ff936 Crystal external checker 0470fff0c Checker python/pylama: add option "--force". e15ebd336 Go checker: no longer attempt to redirect output of "go build". 5c6e78a27 README: suggest a safer cabbrev in FAQ. a7fde99ea Add support for Vera++ C++ checker 25ad02e12 README: add a link to the vim-eastwood plugin. 981196fdc Flow checker: use the "status" command. ae405fed8 Manual: add a note about zsh and rvm with MacVim. 5dba05af4 Bashate: make errorformat more permissive. 48b75c455 Tslint is a style checker. a8771fe6b Puppet-lint checker: --log-format now expects %{line}. 24bb29357 Minor comment fix. 4605886ea Safer opening of the error window (@blueyed). 3a30321fd Fix loclist timestamps for refresh (@blueyed). 9af644dac Remove comments from the tidy checker. 4fbe5f52c Flow checker: recover from negative end offsets. 48090a19f Updates to the manual. 615c890e7 Gfortran checker: bug fix: column handling and sorting for ifort. b152ac3db The gfortran checker now supports Intel Fortran. 80c5a047c Bug fix: b:cflags again. 2cf32d7be Bug fix: b:cflags applies only to C and C++ checkers. fe436371b Checker tsc: version 1.5 has option "--noEmit". a17db15e7 In some cases vim will set the filetype of *.pp files to 'pe-puppet' instead of 'puppet'. There is no functional difference so lets map 'pe-puppet' to 'puppet' so we can use the same default checkers. 710a854f6 Remove shellcheck checker for zsh ebfba7ec3 Puppet-lint no longer requires puppet. 2337c65b3 Keep track of b:changedtick. dac07db61 Cleanup: shut up most vint warnings. ac96ae4a2 Manual: add notes about powerline, vim-airline, and vim-go. ebadf9aff Windows brain damage: executable('foo') doesn't mean 'foo' is executable. b905f6d08 Mercury checker: cleanup. 4e0ac804c added mercury syntax checker 0cde75895 replaced erlang checker with the one from vimerl that works without rebar 84add5b7f Checkers using curl(1): allow redirections. 7b8526b96 Flow checker: bail out if there is no .flowconfig. 5b0d3dc8b README: rephrase. da1ecc0bb FAQ: add a note about $PATH. 231a78f5d Manual: update. 67fc031e0 Manual: fix examples to use g:syntastic_shell. 47eabae37 New global option: "shell". 869c5a726 Camlp4o checker: better error highlighting. 48812d833 Cleanup: exit codes are meaningless for checkers without exec. c297fbebb README: update address of tidy-html5. 69d20efc6 Elixir: handle warnings. fe3a48f33 Ruby checkers: make warning flags configurable. 272fc7df3 Manual: update the note about vim-auto-save. 413cdb354 Flow checker: make exe configurable. 5214f00a1 New checker for API Blueprint: snowcrash. a7758aa18 New checker for Vim: vint. b427af1e0 Cleanup: case-sensitive comparisons. 0e23cb097 Cleanup. fc8f8e500 RAEDME: minor rephrase. 9e5a6e657 README: add a link to vint-syntastic. 2a07c4acd New checker for SML: smlnj. c45293538 README: add a link syntastic-more. 399389c84 README: add links to a few third party checkers. c233c9bbd README: update URL for the Rust checker. f4b064e2d README: rephrase. 71aa71bc1 README: more details about enabling checkers. bccfdea4e Handling redefinition of exec: minor optimisation. 8256e4351 Typo. 471ce96af Remove the xcrun checker for Swift. d73546dd4 Java checker: more path fixes. cf4e18d3f Java checker: fix path detection. 776d4175c Handle redefinition of exec after the checker has run. 478218402 Security: disable the swift/xcrun checker by default. 372daff1a Reek checker: update. 157ad8d43 Minor cleanup. a7841c869 Minor cleanup. dde4a9be9 Formatting. 4401a23f2 Merge pull request #1323 from Shizmob/patch-1 b70e9af18 Don't warn on python/prospector with no messages. 7cbb79b73 More detailed debug information. c1a209895 New checker for JavaScript: standard. 1c6cae0d2 Merge pull request #1320 from ametheus/patch-1 0a310ca0a Fix typo 3ea613f53 Xmllint: make "--xinclude" and "--postvalid" optional. 7d9aec0be Prospector no longer accepts option "--external-config". 6b76c26cb Puppet checker: don't redirect stderr when checking version. abff1d81e Merge pull request #1313 from tomfogg/master 5cc56dbde missing comma in swift errorformat after cleanup b69efd072 README: Swift is now supported. cf012bdea Version logging: minor cleanup. b9608e77b Xcrun: cleanup. 46fc1ec68 Merge branch 'master' of https://github.com/scrooloose/syntastic 3e33785d8 add licence for swift syntax checker a76370c14 add swift syntax checker support using xcrun git-subtree-dir: vim/bundle/syntastic git-subtree-split: 56e19eb81a5cdf75542def5b0b07f68aab50809f --- README.markdown | 123 +++++++--- autoload/syntastic/c.vim | 76 +++--- autoload/syntastic/log.vim | 44 ++-- autoload/syntastic/postprocess.vim | 12 +- autoload/syntastic/preprocess.vim | 158 ++++++++---- autoload/syntastic/util.vim | 128 ++++++---- doc/syntastic.txt | 227 ++++++++++++------ plugin/syntastic.vim | 146 +++++------ plugin/syntastic/autoloclist.vim | 8 +- plugin/syntastic/balloons.vim | 12 +- plugin/syntastic/checker.vim | 78 +++--- plugin/syntastic/cursor.vim | 16 +- plugin/syntastic/highlighting.vim | 16 +- plugin/syntastic/loclist.vim | 98 ++++---- plugin/syntastic/modemap.vim | 26 +- plugin/syntastic/notifiers.vim | 10 +- plugin/syntastic/registry.vim | 207 ++++++++-------- plugin/syntastic/signs.vim | 22 +- syntax_checkers/actionscript/mxmlc.vim | 2 +- syntax_checkers/apiblueprint/snowcrash.vim | 66 +++++ syntax_checkers/applescript/osacompile.vim | 2 +- syntax_checkers/asciidoc/asciidoc.vim | 2 +- syntax_checkers/bemhtml/bemhtmllint.vim | 2 +- syntax_checkers/bro/bro.vim | 6 +- syntax_checkers/c/checkpatch.vim | 2 +- syntax_checkers/c/clang_check.vim | 2 +- syntax_checkers/c/clang_tidy.vim | 2 +- syntax_checkers/c/cppcheck.vim | 2 +- syntax_checkers/c/oclint.vim | 2 +- syntax_checkers/c/pc_lint.vim | 4 +- syntax_checkers/c/sparse.vim | 4 +- syntax_checkers/c/splint.vim | 2 +- syntax_checkers/cabal/cabal.vim | 4 +- syntax_checkers/chef/foodcritic.vim | 2 +- syntax_checkers/co/coco.vim | 2 +- syntax_checkers/coffee/coffee.vim | 2 +- syntax_checkers/coffee/coffeelint.vim | 2 +- syntax_checkers/coq/coqtop.vim | 2 +- syntax_checkers/cpp/clang_check.vim | 2 +- syntax_checkers/cpp/clang_tidy.vim | 2 +- syntax_checkers/cpp/cppcheck.vim | 2 +- syntax_checkers/cpp/cpplint.vim | 2 +- syntax_checkers/cpp/oclint.vim | 2 +- syntax_checkers/cpp/pc_lint.vim | 2 +- syntax_checkers/cpp/verapp.vim | 48 ++++ syntax_checkers/cs/mcs.vim | 4 +- syntax_checkers/css/csslint.vim | 2 +- syntax_checkers/css/phpcs.vim | 2 +- syntax_checkers/css/prettycss.vim | 10 +- syntax_checkers/css/recess.vim | 2 +- syntax_checkers/cucumber/cucumber.vim | 2 +- syntax_checkers/cuda/nvcc.vim | 2 +- syntax_checkers/dart/dartanalyzer.vim | 2 +- syntax_checkers/docbk/xmllint.vim | 2 +- syntax_checkers/dustjs/swiffer.vim | 2 +- syntax_checkers/elixir/elixir.vim | 8 +- syntax_checkers/erlang/erlang_check_file.erl | 100 ++++---- syntax_checkers/erlang/syntaxerl.vim | 2 +- syntax_checkers/eruby/ruby.vim | 6 +- syntax_checkers/fortran/gfortran.vim | 73 +++++- syntax_checkers/glsl/cgc.vim | 6 +- syntax_checkers/go/go.vim | 6 +- syntax_checkers/go/gofmt.vim | 2 +- syntax_checkers/go/golint.vim | 2 +- syntax_checkers/go/gotype.vim | 2 +- syntax_checkers/go/govet.vim | 2 +- syntax_checkers/haml/haml_lint.vim | 2 +- syntax_checkers/handlebars/handlebars.vim | 8 +- syntax_checkers/haskell/ghc-mod.vim | 5 +- syntax_checkers/haskell/hdevtools.vim | 2 +- syntax_checkers/haxe/haxe.vim | 4 +- syntax_checkers/hss/hss.vim | 2 +- syntax_checkers/html/tidy.vim | 64 +++-- syntax_checkers/html/validator.vim | 10 +- syntax_checkers/html/w3.vim | 6 +- syntax_checkers/java/checkstyle.vim | 8 +- syntax_checkers/java/javac.vim | 55 +++-- .../javascript/closurecompiler.vim | 2 +- syntax_checkers/javascript/flow.vim | 13 +- syntax_checkers/javascript/gjslint.vim | 2 +- syntax_checkers/javascript/jscs.vim | 2 +- syntax_checkers/javascript/jsl.vim | 2 +- syntax_checkers/javascript/jslint.vim | 6 +- syntax_checkers/javascript/jsxhint.vim | 2 +- syntax_checkers/javascript/standard.vim | 47 ++++ syntax_checkers/json/jsonlint.vim | 2 +- syntax_checkers/json/jsonval.vim | 4 +- syntax_checkers/less/lessc.vim | 10 +- syntax_checkers/lex/flex.vim | 6 +- syntax_checkers/limbo/limbo.vim | 4 +- syntax_checkers/lisp/clisp.vim | 4 +- syntax_checkers/llvm/llvm.vim | 2 +- syntax_checkers/lua/luac.vim | 4 +- syntax_checkers/lua/luacheck.vim | 14 +- syntax_checkers/markdown/mdl.vim | 2 +- syntax_checkers/matlab/mlint.vim | 4 +- syntax_checkers/mercury/mmc.vim | 49 ++++ syntax_checkers/nasm/nasm.vim | 4 +- syntax_checkers/nix/nix.vim | 44 ++++ syntax_checkers/nroff/mandoc.vim | 2 +- syntax_checkers/objc/oclint.vim | 2 +- syntax_checkers/objcpp/oclint.vim | 2 +- syntax_checkers/ocaml/camlp4o.vim | 52 ++-- syntax_checkers/perl/perl.vim | 2 +- syntax_checkers/perl/perlcritic.vim | 2 +- syntax_checkers/perl/podchecker.vim | 2 +- syntax_checkers/php/php.vim | 4 +- syntax_checkers/php/phpcs.vim | 2 +- syntax_checkers/php/phplint.vim | 16 +- syntax_checkers/php/phpmd.vim | 18 +- syntax_checkers/po/msgfmt.vim | 4 +- syntax_checkers/pod/podchecker.vim | 2 +- syntax_checkers/puppet/puppet.vim | 5 +- syntax_checkers/puppet/puppetlint.vim | 14 +- syntax_checkers/python/flake8.vim | 4 +- syntax_checkers/python/frosted.vim | 14 +- syntax_checkers/python/mypy.vim | 2 +- syntax_checkers/python/pep8.vim | 2 +- syntax_checkers/python/prospector.vim | 3 +- syntax_checkers/python/py3kwarn.vim | 2 +- syntax_checkers/python/pyflakes.vim | 8 +- syntax_checkers/python/pylama.vim | 7 +- syntax_checkers/python/pylint.vim | 4 +- syntax_checkers/python/python.vim | 2 +- syntax_checkers/r/lint.vim | 10 +- syntax_checkers/r/svtools.vim | 6 +- syntax_checkers/racket/code-ayatollah.vim | 2 +- syntax_checkers/racket/racket.vim | 2 +- syntax_checkers/rnc/rnv.vim | 2 +- syntax_checkers/rst/rst2pseudoxml.vim | 4 +- syntax_checkers/rst/rstcheck.vim | 2 +- syntax_checkers/rst/sphinx.vim | 80 ++++++ syntax_checkers/ruby/jruby.vim | 6 +- syntax_checkers/ruby/macruby.vim | 6 +- syntax_checkers/ruby/mri.vim | 6 +- syntax_checkers/ruby/reek.vim | 7 +- syntax_checkers/ruby/rubocop.vim | 2 +- syntax_checkers/ruby/rubylint.vim | 6 +- syntax_checkers/sass/sass.vim | 12 +- syntax_checkers/sass/sassc.vim | 2 +- syntax_checkers/scala/scalac.vim | 2 +- syntax_checkers/scss/sass.vim | 2 +- syntax_checkers/scss/sassc.vim | 2 +- syntax_checkers/scss/scss_lint.vim | 2 +- syntax_checkers/sh/bashate.vim | 4 +- syntax_checkers/sh/checkbashisms.vim | 2 +- syntax_checkers/sh/sh.vim | 10 +- syntax_checkers/sh/shellcheck.vim | 2 +- syntax_checkers/slim/slimrb.vim | 10 +- syntax_checkers/sml/smlnj.vim | 47 ++++ syntax_checkers/tcl/nagelfar.vim | 2 +- syntax_checkers/texinfo/makeinfo.vim | 4 +- syntax_checkers/text/atdtool.vim | 4 +- syntax_checkers/text/language_check.vim | 2 +- syntax_checkers/twig/twiglint.vim | 2 +- syntax_checkers/typescript/tsc.vim | 25 +- syntax_checkers/typescript/tslint.vim | 5 +- syntax_checkers/vala/valac.vim | 4 +- syntax_checkers/verilog/verilator.vim | 2 +- syntax_checkers/vhdl/ghdl.vim | 2 +- syntax_checkers/vim/vimlint.vim | 8 +- syntax_checkers/vim/vint.vim | 55 +++++ syntax_checkers/xhtml/jshint.vim | 2 +- syntax_checkers/xhtml/tidy.vim | 9 +- syntax_checkers/xml/plutil.vim | 2 +- syntax_checkers/xml/xmllint.vim | 6 +- syntax_checkers/xslt/xmllint.vim | 2 +- syntax_checkers/yacc/bison.vim | 2 +- syntax_checkers/yaml/jsyaml.vim | 4 +- syntax_checkers/yaml/yamlxs.vim | 6 +- syntax_checkers/z80/z80syntaxchecker.vim | 2 +- syntax_checkers/zpt/zptlint.vim | 2 +- syntax_checkers/zsh/shellcheck.vim | 25 -- syntax_checkers/zsh/zsh.vim | 2 +- 174 files changed, 1776 insertions(+), 1033 deletions(-) create mode 100644 syntax_checkers/apiblueprint/snowcrash.vim create mode 100644 syntax_checkers/cpp/verapp.vim create mode 100644 syntax_checkers/javascript/standard.vim create mode 100644 syntax_checkers/mercury/mmc.vim create mode 100644 syntax_checkers/nix/nix.vim create mode 100644 syntax_checkers/rst/sphinx.vim create mode 100644 syntax_checkers/sml/smlnj.vim create mode 100644 syntax_checkers/vim/vint.vim delete mode 100644 syntax_checkers/zsh/shellcheck.vim diff --git a/README.markdown b/README.markdown index 4d03421..b9e08c4 100644 --- a/README.markdown +++ b/README.markdown @@ -29,14 +29,15 @@ 4.3. [Are there any local checkers for HTML5 that I can use with syntastic?](#faqhtml5) 4.4. [The `perl` checker has stopped working...](#faqperl) 4.5. [What happened to the `rustc` checker?](#faqrust) -4.6. [I run a checker and the location list is not updated...](#faqloclist) -4.6. [I run`:lopen` or `:lwindow` and the error window is empty...](#faqloclist) -4.7. [How can I pass additional arguments to a checker?](#faqargs) -4.8. [Syntastic supports several checkers for my filetype - how do I tell which one(s) to use?](#faqcheckers) -4.9. [What is the difference between syntax checkers and style checkers?](#faqstyle) -4.10. [I have enabled multiple checkers for the current filetype. How can I display all of the errors from all of the checkers together?](#faqaggregate) -4.11. [How can I jump between the different errors without using the location list at the bottom of the window?](#faqlnext) -4.12. [The error window is closed automatically when I :quit the current buffer but not when I :bdelete it?](#faqbdelete) +4.6. [What happened to the `xcrun` checker?](#faqxcrun) +4.7. [I run a checker and the location list is not updated...](#faqloclist) +4.7. [I run`:lopen` or `:lwindow` and the error window is empty...](#faqloclist) +4.8. [How can I pass additional arguments to a checker?](#faqargs) +4.9. [Syntastic supports several checkers for my filetype - how do I tell which one(s) to use?](#faqcheckers) +4.10. [What is the difference between syntax checkers and style checkers?](#faqstyle) +4.11. [I have enabled multiple checkers for the current filetype. How can I display all of the errors from all of the checkers together?](#faqaggregate) +4.12. [How can I jump between the different errors without using the location list at the bottom of the window?](#faqlnext) +4.13. [The error window is closed automatically when I :quit the current buffer but not when I :bdelete it?](#faqbdelete) 5. [Resources](#otherresources) - - - @@ -51,18 +52,23 @@ can be done on demand, or automatically as files are saved. If syntax errors are detected, the user is notified and is happy because they didn't have to compile their code or execute their script to find them. -At the time of this writing, syntax checking plugins exist for ActionScript, -Ada, AppleScript, AsciiDoc, ASM, BEMHTML, Bro, Bourne shell, C, C++, C#, Cabal, -Chef, CoffeeScript, Coco, Coq, CSS, Cucumber, CUDA, D, Dart, DocBook, Dust, -Elixir, Erlang, eRuby, Fortran, Gentoo metadata, GLSL, Go, Haml, Haskell, -Haxe, Handlebars, HSS, HTML, Java, JavaScript, JSON, JSX, LESS, Lex, Limbo, -LISP, LLVM intermediate language, Lua, Markdown, MATLAB, NASM, Objective-C, -Objective-C++, OCaml, Perl, Perl POD, PHP, gettext Portable Object, OS X and -iOS property lists, Puppet, Python, R, Racket, Relax NG, reStructuredText, RPM -spec, Ruby, SASS/SCSS, Scala, Slim, Tcl, TeX, Texinfo, Twig, TypeScript, Vala, -Verilog, VHDL, VimL, xHtml, XML, XSLT, YACC, YAML, z80, Zope page templates, -and zsh. See the [wiki][3] for details about the corresponding supported -checkers. +At the time of this writing, syntastic has checking plugins for ActionScript, +Ada, API Blueprint, AppleScript, AsciiDoc, ASM, BEMHTML, Bro, Bourne shell, C, +C++, C#, Cabal, Chef, CoffeeScript, Coco, Coq, CSS, Cucumber, CUDA, D, Dart, +DocBook, Dust, Elixir, Erlang, eRuby, Fortran, Gentoo metadata, GLSL, Go, Haml, +Haskell, Haxe, Handlebars, HSS, HTML, Java, JavaScript, JSON, JSX, LESS, Lex, +Limbo, LISP, LLVM intermediate language, Lua, Markdown, MATLAB, Mercury, NASM, +Nix, Objective-C, Objective-C++, OCaml, Perl, Perl POD, PHP, gettext Portable +Object, OS X and iOS property lists, Puppet, Python, R, Racket, Relax NG, +reStructuredText, RPM spec, Ruby, SASS/SCSS, Scala, Slim, SML, Sphinx, Tcl, +TeX, Texinfo, Twig, TypeScript, Vala, Verilog, VHDL, VimL, xHtml, XML, XSLT, +YACC, YAML, z80, Zope page templates, and zsh. See the [wiki][3] for details +about the corresponding supported checkers. + +A number of third-party Vim plugins also provide checkers for syntastic, +for example: [omnisharp-vim][25], [rust.vim][12], [syntastic-extras][26], +[syntastic-more][27], [vim-crystal][29], [vim-eastwood][28], and +[vim-swift][24]. Below is a screenshot showing the methods that Syntastic uses to display syntax errors. Note that, in practise, you will only have a subset of these methods @@ -183,10 +189,32 @@ supported, look at the [wiki][3]. Note that aliases do not work; the actual executables must be available in your `$PATH`. Symbolic links are okay though. You can see syntastic's idea of available checkers by running `:SyntasticInfo`. -Another reason it could fail is that either the command line options or the -error output for a syntax checker may have changed. In this case, make sure you -have the latest version of the syntax checker installed. If it still fails then -create an issue - or better yet, create a pull request. +A second probable reason is that none of the available checkers are +enabled. Syntastic comes preconfigured with a default list of enabled checkers +per filetype, but this list is kept short in order to prevent slowing down Vim +or trying to run conflicting checks. The command `:SyntasticInfo` will show you +which checkers are enabled. You can tell syntastic which checkers (among the +available ones) you want to run by setting `g:syntastic__checkers` in +your `vimrc` (see [below](#faqcheckers)). + +A third possible reason is that the `$PATH` seen by syntastic might not be same +as the `$PATH` in your login shell. Syntastic runs checkers using the shell +pointed to by Vim's `shell` (or by `g:syntastic_shell`, if set), and that's the +shell you need to configure to set the proper `$PATH` and environment variables +for your checkers. You can see syntastic's idea of `$PATH` by running +```vim +:echo syntastic#util#system('echo "$PATH"') +``` +on UNIX and Mac OS-X systems, or +```vim +:echo syntastic#util#system('echo %PATH%') +``` +on Windows. + +Finally, another reason it could fail is that either the command line options +or the error output for a syntax checker may have changed. In this case, make +sure you have the latest version of the syntax checker installed. If it still +fails then post an [issue][4] - or better yet, create a pull request. @@ -204,8 +232,10 @@ __4.3. Q. Are there any local checkers for HTML5 that I can use with syntastic?_ [HTML Tidy][18] has a fork named [HTML Tidy for HTML5][19]. It's a drop in replacement, and syntastic can use it without changes. Just install it -somewhere and point `g:syntastic_html_tidy_exec` to its executable. - +somewhere and point `g:syntastic_html_tidy_exec` to its executable: +```vim +let g:syntastic_html_tidy_exec = 'tidy5' +``` Alternatively, you can install [vnu.jar][21] from the [validator.nu][20] project and run it as a [HTTP server][23]: ```sh @@ -236,14 +266,21 @@ let g:syntastic_enable_perl_checker = 1 __4.5. Q. What happened to the `rustc` checker?__ -A. It has been included in the [Rust compiler package][12]. If you have -a recent version of the Rust compiler, the checker should be picked up -automatically by syntastic. +A. It is now part of the [rust.vim][12] plugin. If you install this plugin the +checker should be picked up automatically by syntastic. + + + +__4.6. Q. What happened to the `xcrun` checker?__ + +A. The `xcrun` checker used to have a security problem and it has been removed. +A better checker for __Swift__ is part of the [vim-swift][24] plugin. If you +install this plugin the checker should be picked up automatically by syntastic. -__4.6. Q. I run a checker and the location list is not updated...__ -__4.6. Q. I run`:lopen` or `:lwindow` and the error window is empty...__ +__4.7. Q. I run a checker and the location list is not updated...__ +__4.7. Q. I run`:lopen` or `:lwindow` and the error window is empty...__ A. By default the location list is changed only when you run the `:Errors` command, in order to minimise conflicts with other plugins. If you want the @@ -255,7 +292,7 @@ let g:syntastic_always_populate_loc_list = 1 -__4.7. Q. How can I pass additional arguments to a checker?__ +__4.8. Q. How can I pass additional arguments to a checker?__ A. Almost all syntax checkers use the `makeprgBuild()` function. Those checkers that do can be configured using global variables. The general form of the @@ -271,7 +308,7 @@ See `:help syntastic-checker-options` for more information. -__4.8. Q. Syntastic supports several checkers for my filetype - how do I tell it +__4.9. Q. Syntastic supports several checkers for my filetype - how do I tell it which one(s) to use?__ A. Stick a line like this in your `vimrc`: @@ -312,7 +349,7 @@ filetype of the current file is `php`). -__4.9. Q. What is the difference between syntax checkers and style checkers?__ +__4.10. Q. What is the difference between syntax checkers and style checkers?__ A. The errors and warnings they produce are highlighted differently and can be filtered by different rules, but otherwise the distinction is pretty much @@ -342,7 +379,7 @@ See `:help syntastic_quiet_messages` for details. -__4.10. Q. I have enabled multiple checkers for the current filetype. How can I +__4.11. Q. I have enabled multiple checkers for the current filetype. How can I display all of the errors from all of the checkers together?__ A. Set `g:syntastic_aggregate_errors` to 1 in your `vimrc`: @@ -354,7 +391,7 @@ See `:help syntastic-aggregating-errors` for more details. -__4.11. Q. How can I jump between the different errors without using the location +__4.12. Q. How can I jump between the different errors without using the location list at the bottom of the window?__ A. Vim provides several built-in commands for this. See `:help :lnext` and @@ -366,7 +403,7 @@ mappings (among other things). -__4.12. Q. The error window is closed automatically when I :quit the current buffer +__4.13. Q. The error window is closed automatically when I :quit the current buffer but not when I :bdelete it?__ A. There is no safe way to handle that situation automatically, but you can @@ -374,7 +411,7 @@ work around it: ```vim nnoremap :lclose:bdelete -cabbrev bd lclose\|bdelete +cabbrev bd =(getcmdtype()==#':' && getcmdpos()==1 ? 'lclose\|bdelete' : 'bd') ``` @@ -404,18 +441,24 @@ a look at [jedi-vim][7], [python-mode][8], or [YouCompleteMe][9]. [9]: http://valloric.github.io/YouCompleteMe/ [10]: http://perldoc.perl.org/perlrun.html#*-c* [11]: https://github.com/scrooloose/syntastic/wiki/Syntax-Checker-Guide -[12]: https://github.com/rust-lang/rust/ +[12]: https://github.com/rust-lang/rust.vim [13]: http://www.vim.org/ [14]: https://github.com/Shougo/neobundle.vim [15]: https://github.com/MarcWeber/vim-addon-manager [16]: https://github.com/junegunn/vim-plug/ [17]: https://github.com/gmarik/Vundle.vim [18]: http://tidy.sourceforge.net/ -[19]: http://w3c.github.io/tidy-html5/ +[19]: http://www.htacg.org/tidy-html5/ [20]: http://about.validator.nu/ [21]: https://github.com/validator/validator/releases/latest [22]: https://github.com/scrooloose/syntastic/wiki/HTML%3A---validator [23]: http://validator.github.io/validator/#standalone +[24]: https://github.com/kballard/vim-swift +[25]: https://github.com/OmniSharp/omnisharp-vim +[26]: https://github.com/myint/syntastic-extras +[27]: https://github.com/roktas/syntastic-more +[28]: https://github.com/venantius/vim-eastwood +[29]: https://github.com/rhysd/vim-crystal