refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / vim-syntastic / README.md
1 ---
2 title: vim-syntastic
3 homepage: https://github.com/vim-syntastic/syntastic
4 tagline: |
5   Syntastic runs files through external syntax checkers and displays any resulting errors to the user.
6 ---
7
8 ## Updating `vim-syntastic`
9
10 ```bash
11 webi vim-syntastic
12 ```
13
14 ## Cheat Sheet
15
16 `vim-syntastic` has been superseded by
17 [ALE](https://github.com/dense-analysis/ale), but it lives on in my heart, my
18 `.vim`, and my `.vimrc`.
19
20 ### How to install manually
21
22 ```bash
23 git clone --depth=1 https://github.com/vim-syntastic/syntastic.git ~/.vim/pack/plugins/start/vim-syntastic
24 ```
25
26 ### How to configure in `.vimrc`
27
28 `.vimrc`:
29
30 ```txt
31 " manually set plugin to use bash - not zsh, fish, etc
32 set shell=bash
33
34 " add this if packages don't load automatically
35 " or remove it otherwise
36 packloadall
37
38 " turn on the syntax checker
39 syntax on
40
41 " don't check syntax immediately on open or on quit
42 let g:syntastic_check_on_open = 1
43 let g:syntastic_check_on_wq = 0
44 ```
45
46 ### How to configure language-specific linters
47
48 ```txt
49 let g:syntastic_javascript_checkers = ['jshint']
50 let g:syntastic_go_checkers = ['go', 'golint', 'errcheck']
51 ```