Skip to content

Instantly share code, notes, and snippets.

@physacco
Created March 8, 2013 08:39
Show Gist options
  • Save physacco/5115035 to your computer and use it in GitHub Desktop.
Save physacco/5115035 to your computer and use it in GitHub Desktop.
Install vim plugin for the go programming language. Tested on Fedora.
#!/bin/sh
GOROOT="/home/i/src/go"
VIMFILES="/usr/share/vim/vimfiles"
mkdir -p $VIMFILES/autoload/go
cp -i $GOROOT/misc/vim/ftdetect/gofiletype.vim $VIMFILES/ftdetect/
cp -i $GOROOT/misc/vim/syntax/go.vim $VIMFILES/syntax/
cp -i $GOROOT/misc/vim/syntax/godoc.vim $VIMFILES/syntax/
cp -i $GOROOT/misc/vim/autoload/go/complete.vim $VIMFILES/autoload/go/
# echo "filetype plugin indent on" >> /etc/vimrc
# echo "syntax on" >> /etc/vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment