mirror of
https://github.com/amix/vimrc
synced 2025-06-24 07:44:59 +08:00
Updated vimrc
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
" Use a BufWritePre autocommand to that end:
|
||||
" autocmd FileType go autocmd BufWritePre <buffer> Fmt
|
||||
|
||||
if exists("g:loaded_syntastic_go_go_checker")
|
||||
if exists('g:loaded_syntastic_go_go_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_go_go_checker = 1
|
||||
@ -58,8 +58,8 @@ function! SyntaxCheckers_go_go_GetLocList() dict
|
||||
let opts = syntastic#util#var('go_go_test_args')
|
||||
let cleanup = 1
|
||||
endif
|
||||
let opt_str = (type(opts) != type('') || opts != '') ? join(syntastic#util#argsescape(opts)) : opts
|
||||
let makeprg = self.getExec() . ' ' . cmd . ' ' . opt_str . ' ' . syntastic#c#NullOutput()
|
||||
let opt_str = (type(opts) != type('') || opts !=# '') ? join(syntastic#util#argsescape(opts)) : opts
|
||||
let makeprg = self.getExec() . ' ' . cmd . ' ' . opt_str
|
||||
|
||||
" The first pattern is for warnings from C compilers.
|
||||
let errorformat =
|
||||
|
@ -14,7 +14,7 @@
|
||||
" Use a BufWritePre autocommand to that end:
|
||||
" autocmd FileType go autocmd BufWritePre <buffer> Fmt
|
||||
|
||||
if exists("g:loaded_syntastic_go_gofmt_checker")
|
||||
if exists('g:loaded_syntastic_go_gofmt_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_go_gofmt_checker = 1
|
||||
|
@ -10,7 +10,7 @@
|
||||
"
|
||||
"============================================================================
|
||||
|
||||
if exists("g:loaded_syntastic_go_golint_checker")
|
||||
if exists('g:loaded_syntastic_go_golint_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_go_golint_checker = 1
|
||||
|
@ -10,7 +10,7 @@
|
||||
"
|
||||
"============================================================================
|
||||
|
||||
if exists("g:loaded_syntastic_go_gotype_checker")
|
||||
if exists('g:loaded_syntastic_go_gotype_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_go_gotype_checker = 1
|
||||
|
@ -10,7 +10,7 @@
|
||||
"
|
||||
"============================================================================
|
||||
|
||||
if exists("g:loaded_syntastic_go_govet_checker")
|
||||
if exists('g:loaded_syntastic_go_govet_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_go_govet_checker = 1
|
||||
|
Reference in New Issue
Block a user