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:
parent
f625954799
commit
08d573cd6a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user