Vim--golang Code Completion

Source: Internet
Author: User
Tags git clone

I want to say, I've been tossing it for a long time. Editor, tried nine ways

In the end, I only succeeded in one

But I still want to sort out my messy logic.

At the beginning of one or one, I tried to start with the ipad coding software, about $9, called Textastic. I tried to test textastic Mac trial with its close relatives to see if the code could be fully mended. I have installed golang.tmbundle. Syntax highlighting and snips are there. Unfortunately not complete.

Second, I think, I heard that TextMate is a close relative of textastic Mac trial, why not try TextMate? Then download the installation

Mkdir-p ~/library/application\ support/avian/pristine\ copy/bundles/users/x/library/application Support/TextMate/ MANAGED/BUNDLES>CD ~/library/application\ support/avian/pristine\ copy/bundles/users/x/library/application Support/avian/pristine Copy/bundles>git Clone Git://github.com/syscrusher/golang.tmbundle.git

Also installed Golang.tmbundle Unfortunately press ESC how to beat are not called out TextMate code completion.

Three, I think, since will not make textmate that will still use my vim

So began to install Vim-go plug-in, after,: Goinstallbinaries for well-known reasons, Golang package to special installation

Go get-u golang.org/x/tools/cmd/gurugo get-u golang.org/x/tools/cmd/gorenamego get-u golang.org/x/tools/go/loader
Go get-u golang.org/x/tools/go/buildutilgo get-u golang.org/x/tools/go/ast/astutilgo get-u Github.com/kisielk/errcheck
Go get-u github.com/zmb3/gogetdoc

Compared to the pit is gogetdoc because only support go1.6, mine is go1.5.1

VI.. /zmb3/gogetdoc/ident.go +142 Compilation However, you need to manually add a function repair ...

And then I try to call ' Omnifunc ' compelete, it doesn't seem to be

Cause by Sirver/ultisnips shortcut key conflict, I deleted sirver/ultisnips

OK, this curve is saving the nation, Bingo.

Four, recall, how can the ipad very comfortable writing Golang it? It seems that the problem is not solved.

Vim--golang Code Completion

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.