1
0
mirror of https://github.com/amix/vimrc synced 2025-07-09 10:45:00 +08:00

Updated vimrc

This commit is contained in:
amix
2015-07-13 11:22:46 +01:00
parent 9a2843c2a5
commit d7752b59ae
301 changed files with 4699 additions and 7969 deletions

View File

@ -13,7 +13,7 @@ function! go#errcheck#Run(...) abort
let package = a:1
end
let bin_path = go#tool#BinPath(g:go_errcheck_bin)
let bin_path = go#path#CheckBinPath(g:go_errcheck_bin)
if empty(bin_path)
return
endif
@ -27,7 +27,7 @@ function! go#errcheck#Run(...) abort
let tokens = matchlist(line, mx)
if !empty(tokens)
call add(errors, {"filename": expand(DefaultGoPath() . "/src/" . tokens[1]),
call add(errors, {"filename": expand(go#path#Default() . "/src/" . tokens[1]),
\"lnum": tokens[2],
\"col": tokens[3],
\"text": tokens[4]})
@ -44,6 +44,7 @@ function! go#errcheck#Run(...) abort
call setqflist(errors, 'r')
endif
else
redraw | echo
call setqflist([])
endif