https://github.com/golangtw/go.vim
git clone https://github.com/golangtw/go.vim.git
把里面的文件拷贝到 $HOME/.vim/ 下 ( 如 /home/user/.vim下,如果.vim 文件夹不存在就新建一个)。
To use all the Vim plugins, add these lines to your $HOME/.vimrc. (如果.vimrc 文件不存在,就新建一个)
" Some Linux distributions set filetype in /etc/vimrc.
" Clear filetype flags before changing runtimepath to force Vim to reload them.
filetype off
filetype plugin indent off
set runtimepath+=$GOROOT/misc/vim
filetype plugin indent on
syntax on