1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:30:05 +08:00

Move set encoding to begining (#2082)

* Move set encoding to begining

* Update wiki
This commit is contained in:
Wang Shidong 2018-08-24 21:06:37 +08:00 committed by GitHub
parent f625954799
commit 08d573cd6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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