From 369418d29c00e96af3033afba6c3a49eb5d06175 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 30 Jun 2011 17:07:44 +1000 Subject: [PATCH] misc/vim: allow only utf-8 for fileencoding (fix CL4625078). R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4650062 --- misc/vim/ftdetect/gofiletype.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/vim/ftdetect/gofiletype.vim b/misc/vim/ftdetect/gofiletype.vim index e50c29270c0..f03a1d8dc31 100644 --- a/misc/vim/ftdetect/gofiletype.vim +++ b/misc/vim/ftdetect/gofiletype.vim @@ -1 +1 @@ -au BufRead,BufNewFile *.go set fileencoding=utf-8 filetype=go +au BufReadPre,BufNewFile *.go set filetype=go fileencoding=utf-8 fileencodings=utf-8