1
0
mirror of https://github.com/golang/go synced 2024-11-24 09:20:02 -07:00
go/misc/vim/ftdetect
Yasuhiro Matsumoto 2fc5dd66df 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
2012-03-14 18:43:01 +11:00
..
gofiletype.vim misc/vim: restore fileencodings. 2012-03-14 18:43:01 +11:00