-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path_vimrc_tohtml
73 lines (53 loc) · 1.24 KB
/
_vimrc_tohtml
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
set nocompatible
"自动检测文件类型
filetype plugin on
"语法高亮开启
syntax on
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
" 颜色主题
colorscheme default
if has("win32")
" vim在与屏幕/键盘交互时用的编码
"set termencoding =
" 打开文件时用的编码
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
" 文件存储时的编码
" set fileencoding =
set lines=30
set columns=120
" 显示行号
set nu
" 不换行
"set nowrap
" 设置缩进
set shiftwidth=4
set tabstop=4
" 关闭备份
set nobackup
set nowritebackup
" 移除菜单栏、工具栏和滚动条
"set guioptions-=m
"set guioptions-=T
"set guioptions-=r
"set guioptions-=b
" 代码折叠
set foldmethod=syntax
" 使用中文帮助
set helplang=cn
" gvim设置
if has("gui_running")
" vim内部编码
set encoding=utf-8
" 解决起始画面及标题乱码
language messages zh_CN.utf-8
" 解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
" 字体设置
"set guifont=Courier_New:h10
set guifont=Consolas:h10
set guifontwide=微软雅黑:h10
endif
endif