Created
April 9, 2017 02:05
-
-
Save sougou/c085189cccc58bf7c3509c7232cff9da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/autoload/go/list.vim b/autoload/go/list.vim | |
index 6859a9f..aa53759 100644 | |
--- a/autoload/go/list.vim | |
+++ b/autoload/go/list.vim | |
@@ -32,9 +32,9 @@ function! go#list#Window(listtype, ...) | |
endif | |
if l:listtype == "locationlist" | |
- exe 'lopen ' . height | |
+ exe 'botright lopen ' . height | |
else | |
- exe 'copen ' . height | |
+ exe 'botright copen ' . height | |
endif | |
endfunction | |
diff --git a/compiler/go.vim b/compiler/go.vim | |
index b2ec1b3..c86297d 100644 | |
--- a/compiler/go.vim | |
+++ b/compiler/go.vim | |
@@ -16,7 +16,7 @@ endif | |
let s:save_cpo = &cpo | |
set cpo-=C | |
if filereadable("makefile") || filereadable("Makefile") | |
- CompilerSet makeprg=make | |
+ CompilerSet makeprg=make\ build\ NOBANNER=1 | |
else | |
CompilerSet makeprg=go\ build | |
endif | |
@@ -27,7 +27,7 @@ endif | |
" use a different output, for those we define them directly and modify the | |
" errorformat ourselves. More information at: | |
" http://vimdoc.sourceforge.net/htmldoc/quickfix.html#errorformat | |
-CompilerSet errorformat =%-G#\ %.%# " Ignore lines beginning with '#' ('# command-line-arguments' line sometimes appears?) | |
+CompilerSet errorformat+=%-G#\ %.%# " Ignore lines beginning with '#' ('# command-line-arguments' line sometimes appears?) | |
CompilerSet errorformat+=%-G%.%#panic:\ %m " Ignore lines containing 'panic: message' | |
CompilerSet errorformat+=%Ecan\'t\ load\ package:\ %m " Start of multiline error string is 'can\'t load package' | |
CompilerSet errorformat+=%A%f:%l:%c:\ %m " Start of multiline unspecified string is 'filename:linenumber:columnnumber:' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment