From 6e66e485cc1fface9fdee6a3352663cd786d4f6e Mon Sep 17 00:00:00 2001 From: 178inaba <178inaba@users.noreply.github.com> Date: Wed, 7 Jun 2017 17:01:50 +0900 Subject: [PATCH 1/2] Fix syntastic help --- doc/vim-go.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/vim-go.txt b/doc/vim-go.txt index a9a0580640..1f36061ee5 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -1657,7 +1657,8 @@ How do I use vim-go with syntastic?~ Sometimes when using both `vim-go` and `syntastic` Vim will start lagging while saving and opening files. The following fixes this: > - let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck'] + let g:syntastic_go_checkers = ['golint', 'govet', 'gometalinter'] + let g:syntastic_go_gometalinter_args = ['--disable-all', '--enable=errcheck'] let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] } < Another issue with `vim-go` and `syntastic` is that the location list window From 1682d0fccb415688dc758e311939ddf32536794e Mon Sep 17 00:00:00 2001 From: 178inaba <178inaba@users.noreply.github.com> Date: Wed, 7 Jun 2017 20:17:52 +0900 Subject: [PATCH 2/2] Fix syntastic help --- doc/vim-go.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/vim-go.txt b/doc/vim-go.txt index 1f36061ee5..b6d63283cc 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -1656,6 +1656,11 @@ How do I use vim-go with syntastic?~ Sometimes when using both `vim-go` and `syntastic` Vim will start lagging while saving and opening files. The following fixes this: +> + let g:syntastic_go_checkers = ['golint', 'govet'] + let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] } +< +If you want to add errcheck you can use gometalinter as a wrapper > let g:syntastic_go_checkers = ['golint', 'govet', 'gometalinter'] let g:syntastic_go_gometalinter_args = ['--disable-all', '--enable=errcheck']