https://github.com/vim-jp/vim-go-extra
Extra plugin for golang
https://github.com/vim-jp/vim-go-extra
Last synced: 4 months ago
JSON representation
Extra plugin for golang
- Host: GitHub
- URL: https://github.com/vim-jp/vim-go-extra
- Owner: vim-jp
- Created: 2014-07-03T00:30:22.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-03-22T13:08:21.000Z (about 2 years ago)
- Last Synced: 2025-01-20T10:48:43.281Z (over 1 year ago)
- Language: VimL
- Homepage:
- Size: 38.1 KB
- Stars: 90
- Watchers: 18
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.
* gocode (https://github.com/nsf/gocode)
* lint (https://github.com/golang/lint)
Installation
------------
To install using pathogen.vim:
cd ~/.vim/bundle
git clone https://github.com/vim-jp/vim-go-extra.git
To install using [Vundle](https://github.com/gmarik/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 Fmt
License
-------
Same as original plugins that go was provided. i.e. BSD