-
Notifications
You must be signed in to change notification settings - Fork 1
/
gvimrc
70 lines (54 loc) · 1.63 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
" stackoverflow VIM initial settings: change background color for line number on the left side?
"highlight LineNr ctermfg=grey ctermbg=white
autocmd BufWritePost .vimrc source % source ~/.gvimrc
autocmd BufWritePost .gvimrc source %
"" Settings of outlooks
" 设置初始界面位置
"winpos 1 100
" 设置初始界面大小
set lines=32 columns=84
" gvim内部编码
"set encoding=utf-8
" 终端编码
"set termencoding=utf-8
" 当前编辑文件的编码
set fileencoding=utf-8
" fonts of gui
command! Bigger :let &guifont = substitute(&guifont, '\d\+$', '\=submatch(0)+1', '')
command! Smaller :let &guifont = substitute(&guifont, '\d\+$', '\=submatch(0)-1', '')
" gvim打开支持编码的文件
set fileencodings=ucs-bom,utf-8,gbk,cp936,gb2312,big5,euc-jp,euc-kr,latin1
if has("win32")
set fileencoding=english
else
set fileencoding=utf-8
endif
set guifont=Monospace\ 13
" 防止特殊符号无法正常显示
set ambiwidth=double
" vim菜单乱码解决
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
" 下划线不能正常显示:https://blog.csdn.net/aboboo5200/article/details/54424836
set linespace=3
" Cursor disappears in Gvim.
" https://bugs.launchpad.net/ubuntu/+source/vim/+bug/616858
set nomousehide
" https://stackoverflow.com/a/3106477
set guioptions-=L
" .vimrc_customized keeps settings specific to a computer.
try
source ~/.df/dotfiles-vm-u18/vimrc_customized
catch
" No such file? No problem; just ignore it.
endtry
try
source ~/.vimrc_customized
catch
" No such file? No problem; just ignore it.
endtry
try
source ~/.df/vimrc_customized
catch
" No such file? No problem; just ignore it.
endtry