From ee261b75e1a31ab7056a897e1b65fba3568cf9ba Mon Sep 17 00:00:00 2001 From: David Symonds Date: Wed, 27 Nov 2013 19:32:15 +1100 Subject: [PATCH] misc/vim: send Fmt errors to the quickfix list instead of the location list. Output from gofmt is a list of errors, so they should appear in the error list. R=adg CC=golang-dev https://golang.org/cl/33760043 --- misc/vim/ftplugin/go/fmt.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/vim/ftplugin/go/fmt.vim b/misc/vim/ftplugin/go/fmt.vim index 5f7976f5f6..359545bd40 100644 --- a/misc/vim/ftplugin/go/fmt.vim +++ b/misc/vim/ftplugin/go/fmt.vim @@ -57,7 +57,7 @@ function! s:GoFormat() endif undo if !empty(errors) - call setloclist(0, errors, 'r') + call setqflist(errors, 'r') endif echohl Error | echomsg "Gofmt returned error" | echohl None endif -- 2.50.0