• David Symonds's avatar
    misc/vim: fix :Import insertion heuristic. · 32944049
    David Symonds authored
    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
    32944049
Name
Last commit
Last update
..
IntelliJIDEA Loading commit data...
arm Loading commit data...
bash Loading commit data...
bbedit Loading commit data...
cgo Loading commit data...
chrome/gophertool Loading commit data...
dashboard Loading commit data...
dist Loading commit data...
emacs Loading commit data...
fraise Loading commit data...
goplay Loading commit data...
kate Loading commit data...
notepadplus Loading commit data...
osx Loading commit data...
swig Loading commit data...
vim Loading commit data...
xcode Loading commit data...
zsh Loading commit data...
benchcmp Loading commit data...
pprof Loading commit data...