安装vim 和 vim-go
sudo apt-get install vim
git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go
安装Vundle
sudo apt-get install git
sudo apt-get install curl
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
编辑配置文件
vim ~/.vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"
" " let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'fatih/vim-go'
"https://github.com/fatih/vim-go
Plugin 'https://github.com/Valloric/YouCompleteMe'
" " All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " requ