"语法高亮显示
syntax enable
syntax on
set background=dark
set nocompatible
set number
"检测文件的类型
filetype on
"记录历史的行数
set history=1000
set cursorline
"set autoindent
set cindent
set autoindent
set cindent
set modeline
set ruler
set showcmd
set showfulltag
set showmode
set smartcase
set smartindent
set imcmdline
set previewwindow
set hlsearch
set ts=4 ht=4 sw=4
let Tlist_File_Fold_Auto_Close=1
colorscheme desert
"set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
syntax enable
syntax on
set nu
set ic
"设置C/C++语言的具体缩进方式
set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s
set smartindent
set expandtab " 使用空格代替tab.
set ts=4 "空格数量
set shiftwidth=4 "自动缩进的宽度
set showmatch
set cursorline
set nobackup
" just for encode
set fileencodings=utf-8,gb2312,gbk,gb18030
set termencoding=utf-8
set fileformats=unix
set encoding=prc
set hlsearch "高亮显示所有匹配
" set foldmethod
set fdm=indent "代码折叠
if &term=="xterm"
set t_Co=8
set t_Sb=^[[4%dm
set t_Sf=^[[3%dm
endif
阅读(2456) | 评论(0) | 转发(0) |