-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
47 lines (45 loc) · 1.29 KB
/
.vimrc
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
setlocal tabstop=2
"查找编码的规则(vim7默认都用utf-8,打开包含gbk字符的文件会出现乱码)
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
"GUI界面里的字体,默认有抗锯齿
"set guifont=Monaco
set guifont=Monaco:h9
set linespace=4
"用<>调整缩进时的长度
set shiftwidth=4
set number
"行号栏宽度
set numberwidth=4
"在输入命令时列出匹配项目,也就是截图底部的效果
set wildmenu
"显示光标位置
set ruler
"分割窗口时保持相等的宽/高
set equalalways
"匹配括号的规则,增加针对html的<>
"set matchpairs=(:),{:},[:],<:>
"让退格,空格,上下箭头遇到行首行尾时自动移到下一行(包括insert模式)
"set whichwrap=b,s,<,>,[,]
"取消自动备份
set nobackup
set nocompatible
syntax on
filetype plugin indent on
colorscheme ir_black
map <F7> :NERDTree<CR>
map <F8> :NERDTreeClose<CR>
map <F6> :%!ruby<CR>
set autoindent
set cindent
set directory=/home/ll/.tmp_vim
set nocp
set hlsearch
map <c-h> ,c<space>
map <c-p> "*p
map <leader>h :set filetype=html<CR>
map <leader>j :set filetype=js<CR>
map <leader>b :set filetype=rb<CR>
map <leader>e :set filetype=eruby-rails<CR>
map <leader>c :set filetype=css<CR>
set t_Co=256
let g:CSApprox_attr_map = { 'bold' : 'bold', 'italic' : '', 'sp' : '' }