go/misc/vim/ftplugin/go
David Symonds 3294404900 misc/vim: fix :Import insertion heuristic.
If a factored import group has a blank line, assume it is dividing
separate groups of imports (e.g. standard library vs. site-specific).
        import (
                "bytes"
                "io"

                "mycorp/package"
        )

The most common case is inserting new standard library imports,
which are usually (stylistically) the first group, so we should drop
"net" in the above example immediately after "io".

Since this logic is getting non-trivial, add a test.

R=golang-dev, minux.ma, franciscossouza
CC=golang-dev
https://golang.org/cl/6445043
2012-07-30 08:48:51 +10:00
..
fmt.vim vim: Send GoFmt errors to a location list 2011-09-23 09:38:10 +10:00
godoc.vim misc/vim: Godoc command. 2011-08-03 16:46:35 +10:00
import.vim misc/vim: fix :Import insertion heuristic. 2012-07-30 08:48:51 +10:00
test.sh misc/vim: fix :Import insertion heuristic. 2012-07-30 08:48:51 +10:00