LoginSignup
9
9

More than 5 years have passed since last update.

golangのパッケージインポート系のvimコマンド集

Last updated at Posted at 2013-09-16

mattn氏の解説(http://mattn.kaoriya.net/software/vim/20130531000559.htm)では
全部書いてないので補足的備忘録

インポートは

:Import {path}
だけじゃなくて

:ImportAs {localname} {path}
で名前指定インポート

:Drop {path}
でインポート済みパッケージの削除ができる。

ソース:
http://golang.org/misc/vim/ftplugin/go/import.vim

追記:
さらにfmtだけはショートカット付きらしい
\fで :Import fmt
\Fで :Drop fmt
たぶん、printデバッグするのに
インポートしたら使わないといけないgolangの制約のためかな。

9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9