summaryrefslogtreecommitdiffstats
path: root/vimrcs/myset.vim
blob: 4dab14c033bcaefad33ed6ed621d81188ebf385a (plain) (blame)
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
let mapleader = "\<Space>"		" 设置leader为space
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,GB18030,cp936,big5,euc-jp,euc-kr,latin1
set fileformat=unix
set helplang=cn				" 帮助中文支持
set mouse=a					" 设置鼠标
set noeb					" 去掉输入错误的提示声音
set confirm					" 在处理未保存或只读文件的时候,弹出确认
set langmenu=zh_CN.UTF-8	" 设置菜单语言
set scrolloff=3				" 光标移动到buffer的顶部和底部时保持3行距离
set vb t_vb=				" 关闭错误提示声音

colorscheme industry		" 设置配色方案
syntax on
set rnu						" 设置相对行号
set nu						" 设置绝对行号
set list					" 显示tab和空格
set listchars=tab:>-,trail:-,eol:$,extends:>,	" 设置tab和空格的显示方式
set cul
set cuc
autocmd VimEnter * hi CursorLine	cterm=NONE ctermbg=red ctermfg=NONE guibg=darkblue guifg=NONE
autocmd VimEnter * hi CursorColumn	cterm=NONE ctermbg=red ctermfg=NONE guibg=darkblue guifg=NONE

" Set cursor shape and color
if &term =~ "xterm"
	" INSERT mode
	let &t_SI = "\<Esc>[5 q" . "\<Esc>]12;blue\x7"
	" REPLACE mode
	let &t_SR = "\<Esc>[3 q" . "\<Esc>]12;black\x7"
	" NORMAL mode
	let &t_EI = "\<Esc>[2 q" . "\<Esc>]12;green\x7"
endif
" 1 -> blinking block  闪烁的方块
" 2 -> solid block  不闪烁的方块
" 3 -> blinking underscore  闪烁的下划线
" 4 -> solid underscore  不闪烁的下划线
" 5 -> blinking vertical bar  闪烁的竖线
" 6 -> solid vertical bar  不闪烁的竖线