* 簡單配置vim
*/
]# cd
]# vim .vimrc
syntax on
## 顯示行號
set nu
## 檢測文件類型
filetype on
## 設置tab寬度
set tabstop=4
## 設置自動對齊空格數
set shiftwidth=4
## 按退格鍵可以一次刪除4個空格
set softtabstop=4
## 設置歷史記錄條數
set history=1000
## 設置顏色
color evening
## 設置代碼匹配,包括括號匹配情況
set showmatch
## 設置C/C++方式自動對齊
set autoindent
set cindent
set showcmd
set smartindent
## 設置取消備份,禁止臨時文件生成
set nobackup
set noswapfile
## 設置樣式
highlight function cterm=bold, ctermbg=red
## 設置文件類型,默認是C語音格式
set filetype=c