]> Cypherpunks repositories - gostls13.git/commit
misc/vim: restore fileencodings.
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Wed, 14 Mar 2012 07:43:01 +0000 (18:43 +1100)
committerDavid Symonds <dsymonds@golang.org>
Wed, 14 Mar 2012 07:43:01 +0000 (18:43 +1100)
commit2fc5dd66dfb36bfdce1f260e55bba07050a21423
tree6b3931947037c98303a4c4f525287ff6e9c5c46c
parentb3ca3e95642f23c682a04d51ed60cc90825b08a5
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
https://golang.org/cl/5718045
misc/vim/ftdetect/gofiletype.vim