1
0
mirror of https://github.com/golang/go synced 2024-09-25 13:30:12 -06:00
go/misc/vim/ftplugin/go
Gustavo Niemeyer 4e5e0b1d20 misc: Import/Drop commands for Vim
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
2011-01-25 11:36:13 +10:00
..
import.vim misc: Import/Drop commands for Vim 2011-01-25 11:36:13 +10:00