1 "显示行号
2 set nu
3
4 "设置缩进tabstop
5 set ts=4
6 set shiftwidth=4
7 set expandtab
8 set ruler
9
10 "语法高亮
11 syntax on
12
13 "设置编码
14 set encoding=utf-8
15
16 "高亮搜索的关键字
17 set hlsearch
18
19 "设置自动缩进
20 "set cindent
21
22 "设置鼠标操作
23 set mouse=i