I recommend using https://github.com/fatih/vim-go by Faith Aslan.
An attempt to automate the installation of all the vim plugins and scripts I find useful for my Go development, based on Martin Angers @PuerkitoBio's blog. These include;
- Tpope's amazing pathogen
- The Go Vim tools which come with your Go installation
- Nsf's gocode Go completion tool
- Townk's vim-autoclose for closing pair symbols (){},etc
- scrooloose's NerdTree tree explorer
- scrooloose's syntastic syntax checking plugin
- Majutsushi's Tagbar tag browser
- Ervandew's SuperTab for tab completion
- Tpope's vim-sensible acceptable defaults for vim
- Altercation's vim-colors-solarized colorscheme.
- Nico Raffo's Conque run interactive commands inside vim buffer.
NOTE: The install script backs up your vimrc and .vim directories to ~/.vim.old and ~/.vimrc.old.
The /PATH/TO/REPOS argument specifies where the various plugin sources wiil be cloned to and must be an absolute PATH.
mkdir /PATH/TO/REPOS/github.com/ttousai && cd /PATH/TO/REPOS/github.com/ttousai
git clone git://github.com/ttousai/vim-config
cd vim-config
./install.sh /PATH/TO/REPOS
NOTE: Step 1 is critical, the install script requires the github.com/ttousai part, of course this can be changed in the script :).
Before uninstalling please make sure to backup any new things you've added to the .vim/autoload and .vim/bundle directory. These instructions assume you kept your backups from the installation (.vimrc.old and .vim).
To uninstall just do the following,
rm -v ~/.vim/autoload/pathogen.vim
rm -rfv ~/.vim/bundle
rm -v ~/.vimrc && mv ~/.vimrc.old ~/.vimrc
optionally
rm -rfv ~/.vim && mv ~/.vim.old ~/.vim
- Remove all cloned plugin code in /PATH/TO/REPOS
I have separated all my personal configuration into the file plugin/default.vim and plugin/keybindings.vim. These includes keybindings and templates for golang and perl.
Also the file plugin/go.vim, contains configurations specific to go
I have included a shell script solarized-gnome-term.sh, from this post. I found it helpful when my solarize color scheme was not running out of the box.