Skip to content

Instantly share code, notes, and snippets.

@kunalkushwaha
Created November 28, 2014 17:25
Show Gist options
  • Save kunalkushwaha/addea1306d5056fc341d to your computer and use it in GitHub Desktop.
Save kunalkushwaha/addea1306d5056fc341d to your computer and use it in GitHub Desktop.
Set go VIM environment for golang
mkdir -p $HOME/.vim/ftdetect
mkdir -p $HOME/.vim/syntax
mkdir -p $HOME/.vim/autoload/go
ln -s $GOROOT/misc/vim/ftdetect/gofiletype.vim $HOME/.vim/ftdetect/
ln -s $GOROOT/misc/vim/syntax/go.vim $HOME/.vim/syntax
ln -s $GOROOT/misc/vim/autoload/go/complete.vim $HOME/.vim/autoload/go
echo "syntax on" >> $HOME/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment