From: David Symonds Date: Wed, 27 Nov 2013 08:32:15 +0000 (+1100) Subject: misc/vim: send Fmt errors to the quickfix list instead of the location list. X-Git-Tag: go1.3beta1~1327 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ee261b75e1a31ab7056a897e1b65fba3568cf9ba;p=gostls13.git 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 --- 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