golang up and running on CentOS7 – take two
After some great feedback and some additional learning/fixes on my end, I wanted to make an updated version of this post.
This go around, I’ve added some plugins I found helpful as well as made a couple of tweaks that I think (not sure yet) will be helpful to me going forward. So here is the brand new build script I came up with…
#Install dependancies and neccessary packages yum -y install golang git vim wget python-devel cmake yum -y groupinstall "Development Tools" #Modify your bash_profile... vim ~/.bash_profile #Add this config... export GOPATH=$HOME/go #Source the file source .bash_profile #Make the golang workspace mkdir ~/go mkdir ~/go/bin mkdir ~/go/pkg mkdir ~/go/src #Install and configure Vundle... #Pull down Vundle git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim #Edit your .vimrc file... vim ~/.vimrc #Add this config... set nocompatible filetype off colorscheme molokai set rtp+=~/.vim/bundle/Vundle.vim call vundle#rc() Plugin 'gmarik/Vundle.vim' Plugin 'nsf/gocode', {'rtp': 'vim/'} Plugin 'fatih/vim-go' Plugin 'Valloric/YouCompleteMe' Plugin 'scrooloose/nerdtree.git' filetype plugin indent on "Prevent autocomplete help from staying visisble autocmd CursorMovedI * if pumvisible() == 0|pclose|endif autocmd InsertLeave * if pumvisible() == 0|pclose|endif "Quit VIM if NERDTree is last open Window autocmd bufenter * Continue reading