Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1550274
  • 博文数量: 61
  • 博客积分: 472
  • 博客等级: 下士
  • 技术积分: 548
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-26 11:52
文章分类
文章存档

2018年(1)

2017年(2)

2016年(6)

2015年(3)

2014年(19)

2013年(10)

2012年(20)

分类: 系统运维

2012-10-15 11:49:51

"语法高亮显示
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
阅读(2350) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~