misc/vim: test.sh seems to only work on Mac OS X.

cmp(1) on FreeBSD requires two file arguments.  grep -P on Linux (at least
Ubuntu 12.04) is described in the man page as "This is highly
experimental" and doesn't seem to work. On FreeBSD the man page states
"This option  is not supported in FreeBSD."  Needed this to work while
debugging some funky behavior of 'Import' in my local vim setup.

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/7675043

Committer: David Symonds <dsymonds@golang.org>
misc/vim: Adding flag-guarding for Vim commands

Default behavior is the same as before, but now a user may selectively disable some commands.

Also: deleted the mappings for import.vim.

Tested: by trying the commands for fmt, import and godoc in succession to make sure they still work. Also, ran test.sh in ftplugin/go.

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/10124043

Committer: David Symonds <dsymonds@golang.org>
misc/vim: Added filetype settings for comments.

This basic Vim ftplugin sets the 'comments' and 'commentstring'
settings to sensible values. Future filetype settings for Go
would go in the same file.
The ftplugin was added as misc/vim/ftplugin/go/go.vim, this way
the installation instructions in readme.txt remain valid.
Fixes issue 5715.

R=dsymonds
CC=gobot, golang-dev
https://codereview.appspot.com/10323043

Committer: David Symonds <dsymonds@golang.org>
misc/vim: Add compiler plugin for Go

This change adds a basic compiler plugin for Go. The plugin
integrates "go build" with Vim's ":make" command and the
quickfix list.

Fixes issue 5751.

R=golang-dev, dsymonds, niklas.schnelle, 0xjnml
CC=golang-dev
https://codereview.appspot.com/10466043

Committer: David Symonds <dsymonds@golang.org>
misc/vim: Allow multiple GOOS/GOARCH.

R=golang-dev, dsymonds, dominik.honnef
CC=golang-dev
https://codereview.appspot.com/9293043

Committer: David Symonds <dsymonds@golang.org>
misc/vim: godoc is optional. so should point installation instruction.

R=golang-dev, r, dsymonds
CC=golang-dev
https://codereview.appspot.com/14017043

Committer: David Symonds <dsymonds@golang.org>
misc/vim: "PACKAGE DOCUMENTATION" is not hilighted

R=golang-dev, r, dsymonds
CC=golang-dev
https://codereview.appspot.com/14018043

Committer: David Symonds <dsymonds@golang.org>
misc/vim: Separate package and package members. This change allow to godoc: :Godoc github.com/mattn/go-gtk/gtk :Godoc github.com/mattn/go-gtk/gtk NewWindow :Godoc encoding/json :Godoc encoding/json Marshal

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/14171043

Committer: David Symonds <dsymonds@golang.org>
misc/vim: Autocompletion for :Godoc command

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/14259043

Committer: David Symonds <dsymonds@golang.org>
misc/vim: complete packages in src directory

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/14454059

Committer: David Symonds <dsymonds@golang.org>