search

Home  >  Q&A  >  body text

golang - vim plug-in to write go

I am looking for a vim plug-in to write a go program

过去多啦不再A梦过去多啦不再A梦2773 days ago814

reply all(5)I'll reply

  • ringa_lee

    ringa_lee2017-05-16 16:43:15

    The best plug-in at the moment, bar none

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

    This is not only syntax highlighting, but also provides completion, jump functions, etc.

    Look at its command list and you can see that it has full functions

    :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
    

    reply
    0
  • 我想大声告诉你

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

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

    reply
    0
  • 巴扎黑

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

    Isn’t this included with Go?

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

    reply
    0
  • 淡淡烟草味

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

    https://github.com/caixw/VimIDE Try this, it integrates gocode and gotag

    reply
    0
  • 巴扎黑

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

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

    About Go’s dict.

    reply
    0
  • Cancelreply