2010-09-27

Go Syntax Highlighting in Vim

mkdir -p ~/.vim/syntax
mkdir ~/.vim/ftdetect
cp $GOROOT/misc/vim/ftdetect/gofiletype.vim ~/.vim/ftdetect/
cp $GOROOT/misc/vim/syntax/go.vim ~/.vim/syntax/

...and you'll get syntax highlighting support in Vi.