12 test=`grep "$add_string" "$file" | wc -l`
13 if [ $test -lt 1 ]; then
14 echo "$add_string" >> "$file"
18 filename=temp_golang_binary
20 if [ "$1" = "" ]; then
21 echo 'Need URL of current go package'
24 sudo rm -rf /usr/local/go
25 sudo apt-get -y install wget
27 sudo tar -C /usr/local -xzf $filename
29 ensure_line 'export PATH=$PATH:/usr/local/go/bin' ~/.shinit_add
30 ensure_line 'export GOPATH=~/gopath' ~/.shinit_add
31 sudo apt-get -y install vim-pathogen
32 rm -rf ~/.vim/bundle/vim-go
33 git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go
34 ensure_line 'source ~/.vimrc_vimgo' ~/.vimrc_add
35 cat << EOF > ~/.vimrc_vimgo
36 " vim-go: Make vim-go run.
37 call pathogen#infect()
38 let g:go_disable_autoinstall = 0
40 let g:go_highlight_functions = 1
41 let g:go_highlight_methods = 1
42 let g:go_highlight_structs = 1
43 let g:go_highlight_operators = 1
44 let g:go_highlight_build_constraints = 1