This is a creation in Article, where the information may have evolved or changed. 
This article is written for VIM like me, the use of vim-go plug-in, although the steps are simple but not enough detailed, close this article to do record and share. Welcome to the great God to correct the supplement!
 
In particular , this blog post is not a Go language environment build tutorial, just VIM plugin part of the configuration tutorial. If you need to know how to download and install the Go language, please configure the first half of the go language development environment.
 
VIM Plugin Address: github.com/fatih/vim-go
 
In order to facilitate the wall users, this blog all the ZIP package to download has been directly packaged: Download address
 
Installing pathogen
 
Pathogen is a plugin manager for VIM, many plugins support it, so don't be afraid of the hassle, because the steps to install it are very simple.
 
 
  
  - Go to the Pathogen home page and find the latest version of the package ZIP download link below.
- After the download, you will get a directory named after the autoloaddirectory to copy the filespathogen.vimto~/.vim/autoload/pathogen.vim.
- Edit the ~/.vimrcfile and join the row at the topcall pathogen#infect().
Installing the Vim-go Plugin
 
With the plugin Manager installed, you can start installing the plugins we want.
 
 
  
  - Executes the ~/.vim/bundlecommand after entering the directorygit clone https://github.com/fatih/vim-go.git.
- Edit ~/.vimrcthe file and add the following (the last line is to disable automatic download):
syntax enablefiletype plugin onset numberlet g:go_disable_autoinstall = 0
 
 
  
  - At this point, the plug-in itself has been installed, you can use according to the instructions of Github.com/fatih/vim-go, which is to point out the code to complete the    prompt, and generally need to.use after the input operator.
Installing Neocomplete real-time tips
 
If you want real-time code completion prompts, you can install the Neocomplete plug-in to achieve, but it has a higher requirement for VIM version, you can see its home page Github.com/shougo/neocomplete.vim.
 
 
  
  - Executes the ~/.vim/bundlecommand after entering the directorygit clone https://github.com/Shougo/neocomplete.vim.git.
- Edit ~/.vimrcthe file and join the linelet g:neocomplete#enable_at_startup = 1. This allows you to automatically turn on real-time completion when you start VIM.
Installing Molokai Themes
 
The author of the Vim-go plugin also wrote a VIM Molokai theme: Github.com/fatih/molokai.
 
The installation process is very simple, which is to download his molokai.vim files and put them ~/.vim/colors in. ~/.vimrcyou can then add the file to the line colorscheme molokai .
 
 
Installing Tagbar
 
This plugin is actually optional, but looks very good, so I also think about the next.
 
 
  
  - First of all decisive you need to install first ctags, I am a Mac sobrew install ctagsit's done.
- Then go get -u github.com/jstemmer/gotagsinstall the relevant parser for the Go language.
- Then add the following to your ~/.vimrcfile:
let g:tagbar_type_go = {    \ 'ctagstype' : 'go',    \ 'kinds'     : [        \ 'p:package',        \ 'i:imports:1',        \ 'c:constants',        \ 'v:variables',        \ 't:types',        \ 'n:interfaces',        \ 'w:fields',        \ 'e:embedded',        \ 'm:methods',        \ 'r:constructor',        \ 'f:functions'    \ ],    \ 'sro' : '.',    \ 'kind2scope' : {        \ 't' : 'ctype',        \ 'n' : 'ntype'    \ },    \ 'scope2kind' : {        \ 'ctype' : 't',        \ 'ntype' : 'n'    \ },    \ 'ctagsbin'  : 'gotags',    \ 'ctagsargs' : '-sort -silent'\ }
 
 
  
  - It is time to install Tagbar plug-ins, and the installation of Vim-go, first into the ~/.vim/bundledirectory. And then executegit clone https://github.com/majutsushi/tagbar.git.
- Edit ~/.vimrcthe file and join the linenmap  :TagbarToggle  . This is a shortcut key mapping, you can change it intoF8any.
All finished is the following so domineering!
 
 
Installing the Directory Browser Nerdtree
 
As the saying goes, can't view the directory editor is not a good ide! In order to make our VIM look more domineering, it is absolutely impossible to miss the Nerdtree plugin.
 
 
  
  - Executes the ~/.vim/bundlecommand after entering the directorygit clone https://github.com/scrooloose/nerdtree.git.
- Edit ~/.vimrcthe file and join the linemap  :NERDTreeToggle  . This way, when you need to browse the directory, you can use the shortcut keys to bring up the browsing window.
Well, let's take a look at the final result:
 
 
Summary
 
Here a basic but complete configuration process is complete, you can install the Vim-go plugin documentation, set more shortcut keys, it supports a lot and very useful features. In addition, to learn how to use VIM, it is recommended that you start with a concise vim practice and practice a little bit every day as I do.
 
I wish you soon become the code of God, haha!