• 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
..
autoload/go Loading commit data...
ftdetect Loading commit data...
ftplugin/go Loading commit data...
indent Loading commit data...
plugin Loading commit data...
syntax Loading commit data...
readme.txt Loading commit data...