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>

webfd/go-zh,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,d0f/go-zh,bryanxu/go-zh,bryanxu/go-zh,sanjosh/sanjos100-tipc,mhennings/marcohennings-go,scirelli/scirelli-go,rdp/rogerpack2005-golang,Triskite/willstone-goclone,rdp/rogerpack2005-golang,webfd/go-zh,mhennings/marcohennings-go,bryanxu/go-zh,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,bryanxu/go-zh,scirelli/scirelli-go,bryanxu/go-zh,sanjosh/sanjos100-tipc,webfd/go-zh,bryanxu/go-zh,scirelli/scirelli-go,Triskite/willstone-goclone,webfd/go-zh,rdp/rogerpack2005-golang,webfd/go-zh,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,d0f/go-zh,bryanxu/go-zh,rdp/rogerpack2005-golang,Triskite/willstone-goclone,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,rflanagan/reginaldflanagan-project1,Triskite/willstone-goclone,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,webfd/go-zh,d0f/go-zh,webfd/go-zh,sanjosh/sanjos100-tipc,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,rflanagan/reginaldflanagan-project1,Triskite/willstone-goclone,d0f/go-zh,scirelli/scirelli-go,rflanagan/reginaldflanagan-project1,mhennings/marcohennings-go,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,scirelli/scirelli-go,Triskite/willstone-goclone,sanjosh/sanjos100-tipc,mhennings/marcohennings-go,sanjosh/sanjos100-tipc,Triskite/willstone-goclone,mhennings/marcohennings-go,d0f/go-zh,rdp/rogerpack2005-golang,webfd/go-zh,bryanxu/go-zh,mhennings/marcohennings-go,mhennings/marcohennings-go,mhennings/marcohennings-go,rdp/rogerpack2005-golang