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