misc/vim: use shiftwidth() instead of &sw if available. Fixes issue 6841.

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/43010044
misc/vim: Fix broken quote

R=golang-codereviews, gobot, dsymonds
CC=golang-codereviews
https://codereview.appspot.com/44960043

Committer: David Symonds <dsymonds@golang.org>
misc/vim: Disable automatic line wrapping by textwidth.

If someone configures a 'textwidth' in go files, vim will by default insert
newlines into long lines as you type, which breaks syntax and doesn't really
make sense for go code. This fixes the default.

LGTM=dsymonds
R=golang-codereviews, gobot, dsymonds
CC=golang-codereviews
https://codereview.appspot.com/76890046

Committer: David Symonds <dsymonds@golang.org>
misc/vim/readme.txt: workaround weird OS X vim bug. The vi bundled with OS X has a weird bug in that if you turn off filetype in .vimrc when it's not turned on, even a clean exit of vi will return 1 which breaks almost everything.

While we're at it, add hint to change $GOROOT to its actual value
in .vimrc.

Fixes issue 7865.

LGTM=robert.hencke, dsymonds
R=golang-codereviews, robert.hencke, gobot, dsymonds
CC=golang-codereviews
https://codereview.appspot.com/96800046