~/.vimrc 文件:
===============================================================
set nu
"can select tags when using vim *.c -p
set mouse=a
"改键
imap <C-j> <Esc>
set cursorline
hi CursorLine cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
"检测文件的类型
filetype on
"记录历史的行数
set history=1000
"自动对齐
set autoindent
set cindent
"智能选择对齐方式
set smartindent
"tab为4个空格
set tabstop=4
"当前行之间交错时使用4个空格
set shiftwidth=4
"设置匹配模式,输入做括号会出现右括号
set showmatch
"编辑时显示光标状态
set ruler