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
| $ vim ~/.vimrc " 256色模式 " 256色模式 set t_Co=256 set term=xterm-256color " 主题 colorscheme delek # desert ron elflord " 注释设置成淡灰色 highlight Comment ctermfg=202 highlight PreProc ctermfg=82 "set hlsearch " 高亮搜索的词 set nohlsearch set incsearch " 输入搜索内容时就显示搜索结果 " 显示所有字符 set list " set listchars=eol:$,tab:~~,trail:.,nbsp:.,precedes:^,extends:^ set listchars=tab:~~,trail:.,nbsp:.,precedes:^,extends:^ highlight NonText ctermfg=239 highlight SpecialKey ctermfg=239 " 显示行号 set number
" 展开tab set expandtab " tab宽度 set tabstop=4 set softtabstop=4 " 自动缩进 set autoindent set shiftwidth=4 set smartindent
" 设置编码 set encoding=utf-8 set termencoding=utf-8 set formatoptions+=mM set fencs=utf-8,gbk set fileencodings=utf-8,gbk set fileformat=unix
set nocompatible " 关闭vi兼容模式 syntax on " 自动语法高亮 set cursorline " 突出当前行 set ruler " 打开状态栏标尺 set ignorecase smartcase " 搜索时忽略大小写,但在有一个或以上大写字母时仍保持对大小写敏感 set incsearch " 输入搜索内容时就显示搜索结果
|