Using the Go Syntax for Janus VIM
To add the Go language (golang) plugins to Janus-flavored VIM, it's not enough to install the VIM plugins into your system's default location. So using, for example, Ubuntu's
vim-syntax-go package will not work.
The best way to install all of the Go VIM plugins is to do the following:
- Create a directory in your
.janusdirectory for the
- Download a fresh copy of the Go source:
hg clone https://code.google.com/p/go/(you may need to
sudo apt-get install mercurialfirst)
- Inside of the
go/miscdirectory, find the
- Copy the contents of the
vimdirectory to the
cp -a vim/* ~/.janus/go.
- Restart VIM
This will give VIM access to all of the Go plugins. Syntax highlighting should immediately work on all