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

Tuning ext4 for performance with emphasis on SSD usage

How to fix: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu