Installing vim with Go support

These are the steps:

  • Move your existing .vimrc, and .vim to someplace. I do these: mv .vimrc .vimrc.backup, mv .vim .vim.backup
  • Ensure you have vim-nox installed. sudo apt-get update, sudo apt-get install vim-nox.
  • Install Vundle: git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  • Copy .vimrc from here: https://raw.githubusercontent.com/manishrjain/vim/master/.vimrc
  • Run vim. Call :PluginInstall
  • Run vim. Call :GoUpdateBinaries
  • Download zip from https://github.com/Shougo/neocomplete.vim
  • Ensure you have lua support. Run vim. Call :echo has("lua"). If it returns 1, you’re set.
  • unzip ~/Downloads/neocomplete.vim, then mv neocomplete.vim-master/* ~/.vim/
  • When you now type into vim, you should be able to see autocomplete.

Also, notice all the amazing build, test, doc browser functionality now. You can use it with ;b, ;t, ;g etc. Look carefully at the ~/.vimrc for more.

2 Likes

I had written a blog on the same a while back, might be useful.

2 Likes

I’ve now also checked in my new and shiny i3 window manager config, and renamed the repo:
https://github.com/manishrjain/dotfiles

So, the links above might not exactly work. But, the .vimrc is here.

1 Like

Interesting video on how to get better at vim:

Vimgolf looks like an interesting site, but they don’t want to show you their best answers unless you provide them with a solution of your own.
http://vimgolf.com/challenges/55b18bbea9c2c30d04000001

Also, breaking bad habits, which I have plenty of:
http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.