• Gustavo Niemeyer's avatar
    misc: Import/Drop commands for Vim · 4e5e0b1d
    Gustavo Niemeyer authored
    New ftplugin adds Import and Drop commands for Go buffers
    in Vim.  These commands ensure that the provided package is
    imported (or not imported) in the current Go buffer, using
    proper style and ordering, without moving the cursor.
    
    E.g.
    
        :Import strings
        :ImportAs . strings
        :Drop strings
    
    Two mappings are also introduced to help with the fmt package:
    
        \f => :Import fmt
        \F => :Drop fmt
    
    R=adg
    CC=golang-dev
    https://golang.org/cl/4009043
    4e5e0b1d
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...