1
2 set nu
3 set backup
4 set bg=light
5 " transform tab to space
6 set expandtab
7 " automatically indent
8 set autoindent
9 set tabstop=4
10 inoremap ( ()<ESC>i
11 inoremap [ []<ESC>i
12 inoremap { {}<ESC>i
13 inoremap " ""<ESC>i
14 inoremap ' ''<ESC>i
15 set wrap
16 set textwidth=80
17 syntax on
18 let &termencoding=&encoding
19 set fileencodings=utf-8,gbk
20 set shiftwidth=4
21
22 set splitbelow
23 set splitright
24 " Enable folding
25 set foldmethod=indent
26 set foldlevel=99
27 " Enable folding with the spacebar
28 nnoremap <space> za