-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gvimrc
75 lines (58 loc) · 1.22 KB
/
.gvimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
"打开行号
set nu!
"自动折行
set wrap
"TAB距离
set tabstop=3
set softtabstop=3
set shiftwidth=3
set expandtab
set cindent
set cursorline
"颜色类型
colorscheme github
"关闭自动备份
set nobackup
set nowb
"关闭交换文件
set noswapfile
"开启折叠
"set nofen
set fdl=0
set fdc=2
set fdm=syntax
" 设置编码
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
"解决consle输出乱码
language messages zh_CN.utf-8
" 设置文件编码检测类型及支持格式
set fencs=utf-8,gbk,ucs-bom,gb18030,gb2312,cp936
" 指定菜单语言
"set langmenu=zh_CN.utf-8
"source $VIMRUNTIME/delmenu.vim
"source $VIMRUNTIME/menu.vim
source $VIMRUNTIME/mswin.vim
set guifont=Envy\ Code\ R\ 9
"set guifontwide=新宋体:h10:cGB2312
" 隐藏工具条
"
" see :help 'guioptions'
"
set guioptions-=T
"set guioptions-=m
"
" 状态条,显示字节数,列数,行数,当前行等信息
"
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
set laststatus=2 " always show the status line
"帮助语言
set helplang=cn
set iskeyword+=
map <S-Right> :tabnext<CR>
map <S-Left> :tabprev<CR>