misc/vim: restore fileencodings. Currently, ftdetect/gofiletype.vim set fileencodings to open the file as utf-8 encoding event if the file does not contain multibyte characters. But fileencodings is global option.
misc/vim: restore fileencodings.
Currently, ftdetect/gofiletype.vim set fileencodings to open the file as
utf-8 encoding event if the file does not contain multibyte characters.
But fileencodings is global option.

$ vim foo.txt
:set fileencodings
utf-8,ucs-bom,cp932

$ vim foo.go
:set fileencodings
utf-8

This change restore fileencodings before opening the file.
Also added specify fileformats=unix.

R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/5718045

Committer: David Symonds <7f6bb564ed9e580d4f0aa90d53b34578e5d24cb9@golang.org>

pombredanne/go-deleteme,gnanderson/go,pombredanne/go-deleteme,apparentlymart/golang,apparentlymart/golang,apparentlymart/golang,pombredanne/go-deleteme,apparentlymart/golang,gnanderson/go,gnanderson/go,dsriram/golang,apparentlymart/golang,gnanderson/go,tv42/old-go,tv42/old-go,dsriram/golang,tv42/old-go,dsriram/golang,tv42/old-go,apparentlymart/golang,pombredanne/go-deleteme,dsriram/golang,pombredanne/go-deleteme,gnanderson/go,dsriram/golang,gnanderson/go,tv42/old-go,dsriram/golang,dsriram/golang,gnanderson/go,pombredanne/go-deleteme,tv42/old-go,pombredanne/go-deleteme,tv42/old-go,apparentlymart/golang