GithubHelp home page GithubHelp logo

tomarron / vim-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fatih/vim-go

0.0 1.0 0.0 2.72 MB

Go development plugin for Vim

Home Page: https://patreon.com/fatih

License: Other

Makefile 0.04% Vim Script 98.65% Go 0.94% Shell 0.37%

vim-go's Introduction

vim-go Build Status

Vim-go logo

Features

This plugin adds Go language support for Vim, with the following main features:

  • Build with :GoBuild, install with :GoInstall or test with :GoTest (run single tests via :GoTestFunc)
  • Show test coverage with :GoCoverage or in browser with :GoCoverageBrowser
  • Goto definition with :GoDef
  • Quick jump to declarations with :GoDecls or :GoDeclsDir
  • Show documentation with :GoDoc inside or in browser with :GoDocBrowser
  • Quickly execute your current file/files with :GoRun
  • Advanced source analysis tools utilizing guru, such as :GoImplements, :GoCallees, and :GoReferrers
  • Change or display GOPATH with :GoPath
  • Multiple 3rd linter support with :GoMetaLinter
  • Renaming identifiers with :GoRename
  • Share your code to play.golang.org with :GoPlay
  • Switch between *.go and *_test.go code with :GoAlternate
  • Add/Remove tags on struct fields with :GoAddTags
  • Add import paths via :GoImport or remove them with :GoDrop
  • Custom vim text objects such as a function (af) or inner function (if)
  • ... and many more! Please see doc/vim-go.txt for more information.

Install

Master branch is a development branch. Please use with caution. I recommend to use the latest stable release

Vim-go follows the standard runtime path structure. Below are some helper lines for popular package managers:

  • Pathogen
    • git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go
  • vim-plug
    • Plug 'fatih/vim-go'
  • Vim packages
    • git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go

After installing, please install all necessary binaries. We have a handy command for it:

:GoInstallBinaries

for more information please check out the documentation

Usage

Official documentation can be found under doc/vim-go.txt. You can display it from within Vim with:

:help vim-go

Depending on your installation, you may have to generate the plugin's help tags manually (eg. :helptags ALL).

We also have an official vim-go tutorial.

License

The BSD 3-Clause License - see LICENSE for more details

vim-go's People

Contributors

fatih avatar arp242 avatar bhcleek avatar mattn avatar nhooyr avatar guns avatar nowk avatar cespare avatar alexaandru avatar riobard avatar alexlafroscia avatar lucapette avatar eliasgs avatar variadico avatar pborzenkov avatar mmlb avatar amirtcho avatar andrewstuart avatar yyoshiki41 avatar rhysd avatar gonotes avatar datanoise avatar caixw avatar t-yuki avatar mitsuse avatar mrnugget avatar owenbutler avatar neumachen avatar dobegor avatar chrisnc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.