From 08d573cd6a9add997d226c28b1be120108d1d8db Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Fri, 24 Aug 2018 21:06:37 +0800 Subject: [PATCH] Move set encoding to begining (#2082) * Move set encoding to begining * Update wiki --- config/init.vim | 4 ---- config/main.vim | 3 +++ wiki/en/Following-HEAD.md | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/init.vim b/config/init.vim index ea46ed5de..fd1e4610f 100644 --- a/config/init.vim +++ b/config/init.vim @@ -42,8 +42,6 @@ if s:SYSTEM.isWindows " Windows cmd.exe still uses cp850. If Windows ever moved to " Powershell as the primary terminal, this would be utf-8 set termencoding=cp850 - " Let Vim use utf-8 internally, because many scripts require this - set encoding=utf-8 setglobal fileencoding=utf-8 " Windows has traditionally used cp1252, so it's probably wise to " fallback into cp1252 instead of eg. iso-8859-15. @@ -53,8 +51,6 @@ if s:SYSTEM.isWindows endif else - " set default encoding to utf-8 - set encoding=utf-8 set termencoding=utf-8 set fileencoding=utf-8 set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 diff --git a/config/main.vim b/config/main.vim index 1841610f7..2ddc3a5b4 100644 --- a/config/main.vim +++ b/config/main.vim @@ -8,6 +8,9 @@ " Enable nocompatible if has('vim_starting') + " set default encoding to utf-8 + " Let Vim use utf-8 internally, because many scripts require this + set encoding=utf-8 if &compatible set nocompatible endif diff --git a/wiki/en/Following-HEAD.md b/wiki/en/Following-HEAD.md index eeb00fc71..03cf9b0b6 100644 --- a/wiki/en/Following-HEAD.md +++ b/wiki/en/Following-HEAD.md @@ -64,6 +64,7 @@ The next release is v0.9.0. - Setting 'verbose' flag to positive value breaks mappings guides ([#2017](https://github.com/SpaceVim/SpaceVim/pull/2017)) - Fix whitespace toggle ([#2032](https://github.com/SpaceVim/SpaceVim/pull/2032)) - Fix Unknown function: TSOnBufEnter for nvim-typescript ([#2062](https://github.com/SpaceVim/SpaceVim/pull/2062)) +- Fix icon in windows ([#2082](https://github.com/SpaceVim/SpaceVim/pull/2082)) ### Removed