首頁  >  問答  >  主體

golang - vim的插件寫go

我找vim的插件寫go的程式

过去多啦不再A梦过去多啦不再A梦2712 天前770

全部回覆(5)我來回復

  • ringa_lee

    ringa_lee2017-05-16 16:43:15

    目前最好的插件,沒有之一

    https://github.com/fatih/vim-go

    這個不只是語法高亮,還提供了補全,跳轉函數等。

    看看它的指令列表 就可以看出功能很全

    :GoImport <path>
    :GoImportAs <localname> <path>
    :GoDrop <path>
    :GoDisableGoimports
    :GoEnableGoimports
    :GoLint
    :GoDoc <identifier>
    :GoDocBrowser <identifier>
    :GoFmt
    :GoVet
    :GoDef <identifier>
    :GoRun <expand>
    :GoBuild
    :GoInstall
    :GoPlay
    :GoTest
    :GoErrCheck
    :GoFiles
    :GoDeps
    :GoUpdateBinaries
    :GoOracleDescribe
    :GoOracleCallees
    :GoOracleCallers
    :GoOracleCallgraph
    :GoOracleImplements
    :GoOracleChannelPeers
    

    回覆
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 16:43:15

    gocode https://github.com/nsf/gocode

    回覆
    0
  • 巴扎黑

    巴扎黑2017-05-16 16:43:15

    這個不是 Go 自帶了麼。

    >>> pacman -Ql go | grep vimfiles | wc -l
    17
    

    回覆
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 16:43:15

    https://github.com/caixw/VimIDE 試試這個,整合了gocode,gotag

    回覆
    0
  • 巴扎黑

    巴扎黑2017-05-16 16:43:15

    https://github.com/InfoGeeker/go-vim-dict

    關於Go的dict。

    回覆
    0
  • 取消回覆