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.

Comments

Popular posts from this blog

Apple's evaluating a new JVM

Tuning ext4 for performance with emphasis on SSD usage