4c593beb0ee607bb1a0c66b7d156f6fcbd8e599a
[webi-installers/.git] / vim-synstastic / 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 description: |
7   vim-syntastic has been superseded by [ALE](https://github.com/dense-analysis/ale), but it lives on in my heart, my `.vim`, and my `.vimrc`.
8 ---
9
10 ### How to install manually
11
12 ```bash
13 git clone --depth=1 https://github.com/vim-syntastic/syntastic.git ~/.vim/pack/plugins/start/vim-syntastic
14 ```
15
16 ### How to configure in `.vimrc`
17
18 `.vimrc`:
19
20 ```txt
21 " manually set plugin to use bash - not zsh, fish, etc
22 set shell=bash
23
24 " add this if packages don't load automatically
25 " or remove it otherwise
26 packloadall
27
28 " turn on the systax checker
29 syntax on
30
31 " don't check syntax immediately on open or on quit
32 let g:syntastic_check_on_open = 1
33 let g:syntastic_check_on_wq = 0
34 ```
35
36 ### How to configure language-specific linters
37
38 ```txt
39 let g:syntastic_javascript_checkers = ['jshint']
40 let g:syntastic_go_checkers = ['go', 'golint', 'errcheck']
41 ```