• Yasuhiro Matsumoto's avatar
    misc/vim: restore fileencodings. · 2fc5dd66
    Yasuhiro Matsumoto authored
    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
    2fc5dd66
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...