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

Rust’s impact on the industry

Brandan Eich on WebAssembly, Web Workers, and Decorators