Code Monkey home page Code Monkey logo

vim-go-extra's Introduction

Extra Vim plugins for Go

This is a collection of extra vim plugins for Go. This is based on go's official repository located at misc/vim. This plugins provides following feature:

  • :Godoc command to open documentation window.
  • :Fmt command to format current buffer.
  • :Import command to add import statement.

And if you has installed some go utilities, this will add runtime path to the vim plugins which is the utilities provides. Below is the list of supported utilities.

Installation

To install using pathogen.vim:

cd ~/.vim/bundle
git clone https://github.com/vim-jp/vim-go-extra.git

To install using Vundle:

" add this line to your .vimrc file
Plugin 'vim-jp/vim-go-extra'

To checkout the source from repository:

cd ~/.vim/bundle
git clone https://github.com/vim-jp/vim-go-extra.git

Configuration

A popular configuration is to gofmt Go source files when they are saved. To do that, add this line to the end of your $HOME/.vimrc.

autocmd FileType go autocmd BufWritePre <buffer> Fmt

License

Same as original plugins that go was provided. i.e. BSD

vim-go-extra's People

Contributors

mattn avatar koron avatar thinca avatar methane avatar crazymaster avatar rhysd avatar todashuta avatar

Watchers

deris avatar James Cloos 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.