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.


Popular posts from this blog

Tuning ext4 for performance with emphasis on SSD usage

Java 8: Default Interface Implementations, The Diamond Problem, Multiple Inheritance, and Precedence

Tuning ext3 for performance without losing its data integrity potential